Skip to content

Uptime percentage for today, 7 days, 1 month, 3 months #1115

Answered by ajhollid
kovoks asked this question in Q&A
Discussion options

You must be logged in to vote

@kovoks feature is implemented, you've got a new endpoint at api/v1/monitors/uptime that should return what you're looking for:

curl --request GET \
  --url http://localhost:5000/api/v1/monitors/uptime \
  --header 'Authorization: <bearer_token>
{
	"success": true,
	"msg": "Got all monitors successfully",
	"data": [
		{
			"1": 100,
			"7": 100,
			"30": 100,
			"90": 100,
			"_id": "672adc421f92af2a06be3315",
			"userId": "672acf1a641a68559b6f5a1c",
			"teamId": "672acf1a641a68559b6f5a1a",
			"name": "Google",
			"description": "Google",
			"type": "http",
			"url": "https://google.com",
			"isActive": true,
			"interval": 60000,
			"createdAt": "2024-11-06T03:02:26.041Z",
			"updatedAt…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ajhollid
Comment options

@kovoks
Comment options

@ajhollid
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ajhollid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants