Comments (8)
Released part of this feature in v1.11.0
For now, the API returns the uptime percentage of each services, which was the initial request. As I've also previously mentioned, I decided to add support for uptime badges.
In the future, I will also probably add the average response on the UI, but I haven't gotten around to it yet.
from gatus.
When you say "get it", do you mean as in have the percentage exposed through an API for other applications to consume, or do you mean as in have it displayed on the dashboard?
I've been thinking of adding something like a "more information" modal that could display similar information at some point.
from gatus.
Having the percentage exposed through the API. Something like:
from gatus.
I can see this being useful.
Would it be per service, overall, or both?
from gatus.
FYI, I got a bit inspired yesterday and decided to start working on this.
I also decided to implement dynamic uptime badges.
The first version will likely come out today, but the uptime is not displayed on the dashboard yet, so it will only be available through the API and through the badges.
from gatus.
I just pushed the first version I talked about earlier in master
, so this is currently only available in the twinproduction/gatus:latest
.
As for your original question, the uptime is now exposed through the API (/api/v1/statuses
):
{
"core_twinnation - article 43": {
"name": "twinnation - article 43",
"group": "core",
"results": ["omitted for brevity"],
"uptime": {
"7d": 1,
"24h": 1,
"1h": 1
}
}
@camilonova While it's not displayed on the frontend yet, does this satisfy your initial request (to expose the uptime through the API)?
from gatus.
Having the percentage exposed through the API. Something like:
statping like xD
from gatus.
Thank you
from gatus.
Related Issues (20)
- Option to increase number of data points shown
- feat(alerting): Make Microsoft Teams title customizable HOT 6
- Send consecutive alerts if endpoint remains unavailable HOT 8
- Add Gotify provider HOT 1
- Show error if no data HOT 2
- feat: make authentication optional for email alert provider
- Monitor individual endpoints over proxy HOT 1
- API response message in case of failure HOT 3
- How to install with `go install` HOT 4
- Ability to serve UI behind a proxy on a path HOT 1
- feat: Add ability to delay startup HOT 5
- Are the Gatus JSON APIs public? HOT 2
- Socket io testing connection HOT 1
- Pop-up or banner display if any service is down
- Local Development Setup HOT 3
- Data not showing when any particular endpoint is opened HOT 5
- TCP for database
- domain expiration check HOT 14
- Request Header Fields Too Large 431 HOT 1
- Public/Private view HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatus.