schemas

package
v0.0.0-...-234d38c Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Kind   MetricKind
	Labels prometheus.Labels
	Value  float64
}

Metric ..

func (Metric) Key

func (m Metric) Key() MetricKey

Key is used to build the key based on the metric kind Keys should be build using a set of labels that identify the metric By default a checksum is used if no key pattern is defined.

type MetricKey

type MetricKey string

MetricKey ..

type MetricKind

type MetricKind int32

MetricKind ..

type Metrics

type Metrics map[MetricKey]Metric

Metrics ..

type TaskSchedulingStatus

type TaskSchedulingStatus struct {
	Last time.Time
	Next time.Time
}

TaskSchedulingStatus represent the stat of the queued tasks.

type TaskType

type TaskType string

TaskType represents the type of a task.

const (
	// TaskTypePullMetrics ..
	TaskTypePullMetrics TaskType = "PullMetrics"
	// TaskTypeGarbageCollectMetrics ..
	TaskTypeGarbageCollectMetrics TaskType = "GarbageCollectMetrics"
)

type Tasks

type Tasks map[TaskType]map[string]interface{}

Tasks can be used to keep track of tasks.

Jump to

Keyboard shortcuts

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