lucasheld / uptime-kuma-api

A Python wrapper for the Uptime Kuma Socket.IO API
https://uptime-kuma-api.readthedocs.io
MIT License
273 stars 23 forks source link

Add support for all monitor status values #30

Closed lucasheld closed 1 year ago

lucasheld commented 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.

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)

An enum for this status value would be useful.

lucasheld commented 1 year ago

done https://github.com/lucasheld/uptime-kuma-api/pull/32