Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotImplemented collector type is not implemented on this os ErrNotImplemented = errors.New("Not implemented on OS") // ErrAlreadyRunning collector is already running ErrAlreadyRunning = errors.New("Already running") // ErrTTLNotExpired collector run ttl has not expired ErrTTLNotExpired = errors.New("TTL not expired") )
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Collect() error Flush() cgm.Metrics ID() string Inventory() InventoryStats }
Collector defines the interface for builtin metric collectors
type InventoryStats ¶
type InventoryStats struct { ID string `json:"name"` LastError string `json:"last_error"` LastRunDuration string `json:"last_run_duration"` LastRunEnd string `json:"last_run_end"` LastRunStart string `json:"last_run_start"` }
InventoryStats defines the stats a collector exposes for the /inventory endpoint
Click to show internal directories.
Click to hide internal directories.