uptime

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

README

UPTIME Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	// EntitySensor ...
	EntitySensor = string("uptime")

	// Name ...
	Name = "uptime"

	AttrUptimeTotal         = "uptime_total"
	AttrAppStarted          = "app_started"
	AttrFirstStart          = "first_start"
	AttrLastShutdown        = "last_shutdown"
	AttrLastShutdownCorrect = "last_shutdown_correct"
	AttrLastStart           = "last_start"
	AttrUptime              = "uptime"
	AttrDowntime            = "downtime"
	AttrUptimePercent       = "uptime_percent"
	AttrDowntimePercent     = "downtime_percent"
)

Variables

Functions

func GetUptime

func GetUptime() (uint64, error)

func New

func New() plugins.Pluggable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

Types

type Actor

type Actor struct {
	*supervisor.BaseActor
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service plugins.Service) *Actor

NewActor ...

func (*Actor) Destroy

func (e *Actor) Destroy()

func (*Actor) Spawn

func (e *Actor) Spawn()

Jump to

Keyboard shortcuts

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