Documentation
¶
Overview ¶
Package legacy provides types for legacy/deprecated APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentMeasurement ¶
type AgentMeasurement struct { Plugins map[string]Metrics `json:"plugins"` Totals map[string][]MetricFields `json:"totals"` }
AgentMeasurement stores per plugin and total agent level metrics.
type AgentMetrics ¶
type AgentMetrics struct {
Measurements map[string]AgentMeasurement `json:"measurements"`
}
AgentMetrics response payload for agent level metrics.
type AggregatorMeasurement ¶
type AggregatorMeasurement struct { Metrics map[string][]MetricFields `json:"metrics"` Totals map[string][]MetricFields `json:"totals"` }
AggregatorMeasurement stores a list of metrics and totals for an aggregator.
type CoreInstanceMetrics ¶
type CoreInstanceMetrics struct {
Measurements map[string]AggregatorMeasurement `json:"measurements"`
}
CoreInstanceMetrics stores a set of AggregatorMeasurement metrics for an aggregator.
type MetricFields ¶
type MetricFields struct { Time time.Time `json:"time"` Value *float64 `json:"value"` Field string `json:"-"` Plugin string `json:"-"` }
MetricFields stores a tuple of time, value per metric.
type Metrics ¶
type Metrics struct {
Metrics map[string][]MetricFields `json:"metrics"`
}
Metrics stores a dict of metric type and its fields.
type PipelineMetric ¶
type PipelineMetric struct { Data AgentMetrics `json:"data"` Error string `json:"error"` }
PipelineMetric response payload for pipeline level metric.
type ProjectMeasurement ¶
type ProjectMeasurement struct { Totals map[string]*float64 `json:"totals"` Plugins map[string]Metrics `json:"plugins"` }
ProjectMeasurement struct to store project metrics, used for project level metrics.
type ProjectMetrics ¶
type ProjectMetrics struct { Measurements map[string]ProjectMeasurement `json:"measurements"` TopPlugins map[string]map[string]*float64 `json:"topPlugins"` }
ProjectMetrics response payload for project level metrics.