Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gauge ¶
type Gauge struct { Name string `json:"name"` Value float64 `json:"value"` Source string `json:"source"` MeasureTime int64 `json:"measure_time"` }
Gauge is the gauge format for Librato's API fromat
type LMetrics ¶
type LMetrics struct {
Gauges []*Gauge `json:"gauges"`
}
LMetrics is the default struct for Librato's API fromat
type Librato ¶
type Librato struct { APIUser string `toml:"api_user"` APIToken string `toml:"api_token"` Debug bool SourceTag string // Deprecated, keeping for backward-compatibility Timeout internal.Duration Template string APIUrl string // contains filtered or unexported fields }
Librato structure for configuration and client
func NewLibrato ¶
NewLibrato is the main constructor for librato output plugins
func (*Librato) Connect ¶
Connect is the default output plugin connection function who make sure it can connect to the endpoint
func (*Librato) Description ¶
Description is function who return the Description of this output
func (*Librato) SampleConfig ¶
SampleConfig is function who return the default configuration for this output
Click to show internal directories.
Click to hide internal directories.