Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowMetric ¶ added in v0.9.0
type Pipeline ¶
type Pipeline struct {
Host string `json:"host"`
Pipelines map[string]struct {
Reloads struct {
LastSuccessTime string `json:"last_success_timestamp"`
LastFailureTime string `json:"last_failure_timestamp"`
Successes int `json:"successes"`
Failures int `json:"failures"`
} `json:"reloads"`
Flow struct {
QueueBackpressure FlowMetric `json:"queue_backpressure"`
OutputThroughput FlowMetric `json:"output_throughput"`
InputThroughput FlowMetric `json:"input_throughput"`
FilterThroughput FlowMetric `json:"filter_throughput"`
} `json:"flow"`
Queue struct {
Type string `json:"type"`
EventsCount int `json:"events_count"`
QueueSizeInBytes int `json:"queue_size_in_bytes"`
MaxQueueSizeInBytes int `json:"max_queue_size_in_bytes"`
} `json:"queue"`
Events struct {
Filtered int `json:"filtered"`
Duration int `json:"duration"`
QueuePushDuration int `json:"queue_push_duration_in_millis"`
In int `json:"in"`
Out int `json:"out"`
} `json:"events"`
} `json:"pipelines"`
}
type Stat ¶
type Stat struct {
Host string `json:"host"`
Version string `json:"version"`
Status string `json:"status"`
Process Process `json:"process"`
Jvm JVM `json:"jvm"`
MajorVersion int
}
func (*Stat) UnmarshalJSON ¶ added in v0.8.2
Custom Unmarshal since we might want to add or parse further fields in the future. This is simpler to extend and to test here than during the CheckPlugin logic.
Click to show internal directories.
Click to hide internal directories.