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 Uptime to the status page #109

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Add Uptime to the status page #109

merged 3 commits into from
Jun 17, 2024

Conversation

jvanbaarsen
Copy link
Member

@jvanbaarsen jvanbaarsen commented Jun 14, 2024

Customers have asked to be shown an uptime percentage. We're now showing this.

Also we changed the color for a partial outage to yellow instead of red.

CleanShot 2024-06-14 at 11 42 43

CleanShot 2024-06-14 at 11 42 53

Customers have asked to be shown an uptime percentage. We're now showing
this.

Also we changed the color for a partial outage to yellow instead of red
@jvanbaarsen jvanbaarsen self-assigned this Jun 14, 2024
threshold
? "down"
: "up";
const maxDowntime = Object.values(timeserie.values).reduce((a, b) =>
Copy link
Member

Choose a reason for hiding this comment

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

I think you can also do this

Math.max(...Object.values(timeserie.values));

@jvanbaarsen
Copy link
Member Author

Checked this thing locally and it works fine 👍

@jvanbaarsen jvanbaarsen merged commit 573bbb6 into develop Jun 17, 2024
3 checks passed
@jvanbaarsen jvanbaarsen deleted the addUptime branch June 17, 2024 07:17
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