uptimekuma

package
v0.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

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 Settings

type Settings struct {
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

NewSettingsFromYAML creates a new settings instance from a YAML config block

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

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, pages *tview.Pages, settings *Settings) *Widget

NewWidget creates and returns an instance of Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Refresh updates the onscreen contents of the widget

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL