uptime

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

README

UPTIME Plugin

Documentation

Documentation

Index

Constants

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

	// Name ...
	Name = "uptime"

	Version = "0.0.1"

	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 added in v0.12.0

func GetUptime() (uint64, error)

func New

func New() supervisor.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 supervisor.Service) *Actor

NewActor ...

func (*Actor) Destroy added in v0.12.0

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