Closed lucasheld closed 1 year ago
Currently the monitor status field is a boolean and indicates whether a monitor is DOWN or UP. For this reason, it is currently not possible to determine whether a monitor status is PENDING or MAINTENANCE.
status
DOWN
UP
PENDING
MAINTENANCE
This field needs to be converted to an int with the following values: 0: DOWN 1: UP 2: PENDING 3: MAINTENANCE (source: https://github.com/louislam/uptime-kuma/blob/8a3bce44ef8fdd8d2ee4b72ec5de064062c8a7b1/src/util.ts#L15C3-L18)
0
1
2
3
An enum for this status value would be useful.
done https://github.com/lucasheld/uptime-kuma-api/pull/32
Currently the monitor
status
field is a boolean and indicates whether a monitor isDOWN
orUP
. For this reason, it is currently not possible to determine whether a monitor status isPENDING
orMAINTENANCE
.This field needs to be converted to an int with the following values:
0
: DOWN1
: UP2
: PENDING3
: MAINTENANCE (source: https://github.com/louislam/uptime-kuma/blob/8a3bce44ef8fdd8d2ee4b72ec5de064062c8a7b1/src/util.ts#L15C3-L18)An enum for this status value would be useful.