Skip to content

Some Question about API #1098

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

You must be logged in to vote

Hi @burakdonertas,

Apologies for the late response, I just saw this post now.

The statuses you see there are based on the status field of the monitor.

true -> "up"
false -> "down"
undefined -> "paused"

As for the agregate numbers, they come from this endpoint:

/api/v1/monitors/team/summary/<team_id>?type=http&type=ping

which gives you:

{
	"success": true,
	"msg": "Got monitor for 66e0fd9e20d9c30935cfaaf9 successfully\"",
	"data": {
		"monitors": [],
		"monitorCounts": {
			"up": 0,
			"down": 0,
			"paused": 0,
			"total": 0
		}
	}
}

You can find all information on api endpoints in our swagger docs at <server_host>:<port>/api-docs ex localhost:5000/api-docs

Replies: 1 comment

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