Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Component string `json:"component,omitempty"` EventObject string `json:"event_object,omitempty"` Host string `json:"host,omitempty"` MsgText string `json:"msg_text,omitempty"` EventType string `json:"event_type,omitempty"` SourceTypeName string `json:"source_type_name,omitempty"` MsgTitle string `json:"msg_title,omitempty"` Timestamp float64 `json:"timestamp"` Tags []string `json:"tags,omitempty"` }
type MetricPayload ¶
type MetricPayload struct { Metrics []*Metric `json:"metrics"` // contains filtered or unexported fields }
Transferred between sinks.
func (*MetricPayload) Encode ¶
func (ml *MetricPayload) Encode() ([]byte, error)
func (*MetricPayload) Length ¶
func (ml *MetricPayload) Length() int
type ProcessStruct ¶
type RequestBody ¶
type RequestBody struct { ApiKey string `json:"apiKey"` InternalHostname string `json:"internalHostname"` CpuIdle float64 `json:"cpuIdle"` SystemLoad1 float64 `json:"system.load.1"` SystemLoad5 float64 `json:"system.load.5"` SystemLoad15 float64 `json:"system.load.15"` CollectionTimestamp float64 `json:"collection_timestamp"` Metrics []interface{} `json:"metrics"` Gohai string `json:"gohai"` Processes ProcessStruct `json:"processes"` Events map[string][]interface{} `json:"events"` AgentChecks []interface{} `json:"agent_checks"` ServiceChecks []interface{} `json:"service_checks"` }
type ServiceCheckBasic ¶
type ServiceCheckInput ¶
type ServiceCheckInput struct { ServiceCheckBasic `mapstructure:",squash"` Tags []string `json:"tags"` }
type ServiceCheckOutput ¶
type ServiceCheckOutput struct { ServiceCheckBasic `mapstructure:",squash"` Tags map[string]string `json:"tags"` }
Click to show internal directories.
Click to hide internal directories.