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

Add values to rrd-status docs #6302

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Add values to rrd-status docs #6302

merged 1 commit into from
Jun 30, 2023

Conversation

mmahacek
Copy link
Contributor

Based on values per

private static double buildPollStatusValue(final PollStatus status) {
switch (status.getStatusCode()) {
case PollStatus.SERVICE_AVAILABLE: return 1.0;
case PollStatus.SERVICE_UNAVAILABLE: return 0.0;
case PollStatus.SERVICE_UNRESPONSIVE: return -1.0;
case PollStatus.SERVICE_UNKNOWN: return Double.NaN;
default: throw new IllegalStateException("Unhandled status code");

All Contributors

External References

  • Jira (Issue Tracker): No Jira

@mmahacek mmahacek self-assigned this Jun 30, 2023
@github-actions github-actions bot added the docs label Jun 30, 2023
@github-actions github-actions bot requested a review from Bonrob2 June 30, 2023 15:46
@dino2gnt
Copy link
Contributor

This is good, high quality documentatin'.

Copy link
Contributor

@Bonrob2 Bonrob2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and I won't argue with Dino. Thanks!

@mmahacek mmahacek merged commit 3291a45 into foundation-2023 Jun 30, 2023
3 of 4 checks passed
@mmahacek mmahacek deleted the mm/docs-rrd-status branch June 30, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants