Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCodeCollectorNotFound router.ErrCode = "collector_not_found" ErrCodeVisualizerNotFound router.ErrCode = "visualizer_not_found" ErrCodeFailedToInstallCollector router.ErrCode = "failed_to_install_collector" ErrCodeFailedToInstallVisualizer router.ErrCode = "failed_to_install_visualizer" )
View Source
const ( MetricStatusOff float64 = 0.0 MetricStatusOn float64 = 1.0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDecrementMetric ¶
type EventIncrementMetric ¶
type EventRegisterMetrics ¶
type EventRegisterMetrics struct {
Metrics []Metric
}
type EventSetMetric ¶
type Metric ¶
type Metric struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description,omitempty"` Type MetricType `json:"type,omitempty"` Labels []string `json:"labels,omitempty"` }
type MetricType ¶
type MetricType string
const ( MetricTypeOnOff MetricType = "metric_type_on_off" MetricTypeInteger MetricType = "metric_type_number" )
Click to show internal directories.
Click to hide internal directories.