Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatUnixNano ¶
FormatUnixNano converts a Unix nanosecond-precision timestamp to a Unix seconds-precision timestamp.
Types ¶
type StackdriverCustomMetric ¶
type StackdriverCustomMetricOutput ¶
type StackdriverCustomMetricOutput struct {
// contains filtered or unexported fields
}
func (*StackdriverCustomMetricOutput) ConfigStruct ¶
func (so *StackdriverCustomMetricOutput) ConfigStruct() interface{}
func (*StackdriverCustomMetricOutput) Init ¶
func (so *StackdriverCustomMetricOutput) Init(config interface{}) (err error)
func (*StackdriverCustomMetricOutput) Run ¶
func (so *StackdriverCustomMetricOutput) Run(or OutputRunner, h PluginHelper) (err error)
type StackdriverCustomMetricOutputConfig ¶
type StackdriverCustomMetricOutputConfig struct { // Stackdriver API key. APIKey string `toml:"api_key"` // Interval to send metrics to Stackdriver customer metrics API. // Defaults to one minute intervals to send messages as that is the current limit from Stackdriver. TickerInterval uint `toml:"ticker_interval"` // Set of metric templates this output should use, keyed by field name. Metric map[string]StackdriverCustomMetric }
Stackdriver Output config struct
Click to show internal directories.
Click to hide internal directories.