Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heartbeat ¶
type Heartbeat struct {
Status int `json:"status"`
}
Heartbeat represents a single heartbeat event
type HeartbeatData ¶
type HeartbeatData struct { HeartbeatList map[string][]*Heartbeat `json:"heartbeatList"` UptimeList map[string]float64 `json:"uptimeList"` }
HeartbeatData represents the data from the /api/status-page/heartbeat/<slug> endpoint
type HeartbeatStatus ¶
type HeartbeatStatus int
HeartbeatStatus represents the status of a heartbeat Matches JS: DOWN=0, UP=1, PENDING=2, MAINTENANCE=3
const ( DOWN HeartbeatStatus = iota UP PENDING MAINTENANCE )
type Incident ¶
type Incident struct {
CreatedDate string `json:"createdDate"`
}
Incident represents an incident in Uptime Kuma
type StatusPageData ¶
type StatusPageData struct {
Incident *Incident `json:"incident"`
}
StatusPageData represents the data from the /api/status-page/<slug> endpoint
type Widget ¶
type Widget struct { view.TextWidget // contains filtered or unexported fields }
Widget is the container for your module's data
Click to show internal directories.
Click to hide internal directories.