Documentation ¶
Index ¶
- func GetModule() common.Module
- type Metric
- type Prometheus
- func (m *Prometheus) GetDescription() string
- func (m *Prometheus) GetLastRun() string
- func (m *Prometheus) GetName() string
- func (m *Prometheus) GetRunInterval() int64
- func (m *Prometheus) GetRunIntervalOnBattery() int64
- func (m *Prometheus) GetSlug() string
- func (m *Prometheus) GetWaybarOutput() (*common.WaybarOutput, error)
- func (m *Prometheus) IsEnabled() bool
- func (m *Prometheus) Run() error
- func (m *Prometheus) RunCommand(name string, args []string) error
- func (m *Prometheus) SaveLastRun()
- func (m *Prometheus) SuspendOnBattery() bool
- func (m *Prometheus) WriteOutput() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Prometheus ¶
type Prometheus struct { Name string Description string Slug string // contains filtered or unexported fields }
func (*Prometheus) GetDescription ¶
func (m *Prometheus) GetDescription() string
func (*Prometheus) GetLastRun ¶
func (m *Prometheus) GetLastRun() string
func (*Prometheus) GetName ¶
func (m *Prometheus) GetName() string
func (*Prometheus) GetRunInterval ¶
func (m *Prometheus) GetRunInterval() int64
func (*Prometheus) GetRunIntervalOnBattery ¶
func (m *Prometheus) GetRunIntervalOnBattery() int64
func (*Prometheus) GetSlug ¶
func (m *Prometheus) GetSlug() string
func (*Prometheus) GetWaybarOutput ¶
func (m *Prometheus) GetWaybarOutput() (*common.WaybarOutput, error)
func (*Prometheus) IsEnabled ¶
func (m *Prometheus) IsEnabled() bool
func (*Prometheus) Run ¶
func (m *Prometheus) Run() error
func (*Prometheus) RunCommand ¶
func (m *Prometheus) RunCommand(name string, args []string) error
func (*Prometheus) SaveLastRun ¶
func (m *Prometheus) SaveLastRun()
func (*Prometheus) SuspendOnBattery ¶
func (m *Prometheus) SuspendOnBattery() bool
func (*Prometheus) WriteOutput ¶
func (m *Prometheus) WriteOutput() error
Click to show internal directories.
Click to hide internal directories.