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

Show daily status bar as Red only if it passes a threshold #54

Closed
rayjanoka opened this issue Feb 23, 2024 · 1 comment
Closed

Show daily status bar as Red only if it passes a threshold #54

rayjanoka opened this issue Feb 23, 2024 · 1 comment

Comments

@rayjanoka
Copy link

rayjanoka commented Feb 23, 2024

Is your feature request related to a problem? Please describe.

Some of the services that I am monitoring are not the most reliable so sometimes I get 1 or 2 random missed pings per day and then I get a red bar for that whole day and it looks bad. I would like to set a threshold of down minutes per day before I get a red bar.

Describe the solution you'd like

I would like a threshold setting where I can set it to only show the day as DOWN (red) if it was down for more than N minutes. Most likely having this setting per monitor would be best, although I'm fine using it globally across all monitors.

Describe alternatives you've considered

None

Additional context

I did something like this in ninety.js and it seems to work.

from

    if (dayData.DOWN > 0) {
        cssClass = StatusObj.DOWN;
        message = getDayMessage("Down", dayData.DOWN);
    }

to

    if (dayData.DOWN > 3) { // modification to suppress a few misses
        cssClass = StatusObj.DOWN;
        message = getDayMessage("Down", dayData.DOWN);
    }

The simple way I implement it here may be problematic as a real outage will have to pass this threshold before it will be displayed on the page, not sure if there is a way around that at least for an outage declared through a GitHub issue (I have not tested this).

rajnandan1 pushed a commit that referenced this issue Apr 30, 2024
CHANGE: monitors now get three new optional parameter dayDegradedMinimumCount, dayDownMinimumCount and includeDegradedInDowntime

Requestd on issue #54
@rajnandan1
Copy link
Owner

Screenshot 2024-04-30 at 11 17 17 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants