collector

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

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

Directories

Path Synopsis
linux
windows
wmi

Jump to

Keyboard shortcuts

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