types

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 1 Imported by: 0

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 EventDecrementMetric struct {
	MetricID string
	Labels   []string
}

type EventIncrementMetric

type EventIncrementMetric struct {
	MetricID string
	Labels   []string
}

type EventRegisterMetrics

type EventRegisterMetrics struct {
	Metrics []Metric
}

type EventSetMetric

type EventSetMetric struct {
	MetricID string
	Value    interface{}
	Labels   []string
}

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"
)

Jump to

Keyboard shortcuts

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