Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HWKMETRICS-420 Add ADMIN AvailabilityType #522

Merged
merged 1 commit into from
Jun 23, 2016

Conversation

jshaughn
Copy link
Contributor

  • Add ADMIN as avail value=3
  • Needed to refactor AvailabilityBucketPoint
    • this was flawed as it assumed only UP and DOWN avail, ignoring UNKNOWN
      and now ADMIN.
    • this is publicly exposed via JSON in the GET avail REST endpoints
      • Kept as deprecated some obsolete fields for JSON back compatibility
      • ??? One question for reviewers: Is it OK to now expose a Map in the
        JSON or do you prefer replacing the map with explicit fields ???

@stefannegrea and/or @jsanda please review.

- Add ADMIN as avail value=3
- Needed to refactor AvailabilityBucketPoint
  - this was flawed as it assumed only UP and DOWN avail, ignoring UNKNOWN
    and now ADMIN.
  - this is publicly exposed via JSON in the GET avail REST endpoints
    - Kept as deprecated some obsolete fields for JSON back compatibility
    - ??? One question for reviewers: Is it OK to now expose a Map in the
      JSON or do you prefer replacing the map with explicit fields ???
@rhqci
Copy link

rhqci commented Jun 22, 2016

Can one of the admins verify this patch?

@FilipB
Copy link

FilipB commented Jun 23, 2016

ok to test

@jsanda
Copy link
Contributor

jsanda commented Jun 23, 2016

AvailabilityBucketPoint only assumed up/down because that is all that was required. I thinking deprecating the fields is good. We can mention it in the release notes. Lastly, I think using a map is fine. If other availability types are introduced, we don't have to keep adding fields which is nice.

@jsanda jsanda merged commit 76831ec into hawkular:master Jun 23, 2016
@jshaughn jshaughn deleted the hwkmetrics-420 branch September 2, 2016 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants