types

package
v0.0.0-...-2a9c997 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: MIT Imports: 1 Imported by: 0

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 Metric

type Metric struct {
	Metric    string            `json:"metric"`
	Timestamp int64             `json:"timestamp"`
	Value     float64           `json:"value"`
	Tags      map[string]string `json:"tags"`
}

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 Process

type Process struct {
	Process string `json:"process"`
	User    string `json:"user"`
}

type ProcessStruct

type ProcessStruct struct {
	ApiKey    string        `json:"apiKey"`
	Host      string        `json:"host"`
	Processes []interface{} `json:"processes"`
}

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 ServiceCheckBasic struct {
	Check     string  `json:"check"`
	Timestamp float64 `json:"timestamp"`
	Status    int     `json:"status"`
	Id        int     `json:"id"`
	Message   string  `json:"message"`
}

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"`
}

Jump to

Keyboard shortcuts

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