exemplar

package
v2.0.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exemplar

type Exemplar struct {
	Labels labels.Labels
	Value  float64
	HasTs  bool
	Ts     int64
}

Exemplar is additional information associated with a time series.

func (Exemplar) Equals

func (e Exemplar) Equals(e2 Exemplar) bool

Equals compares if the exemplar e is the same as e2. Note that if HasTs is false for both exemplars then the timestamps will be ignored for the comparison. This can come up when an exemplar is exported without it's own timestamp, in which case the scrape timestamp is assigned to the Ts field. However we still want to treat the same exemplar, scraped without an exported timestamp, as a duplicate of itself for each subsequent scrape.

type QueryResult

type QueryResult struct {
	SeriesLabels labels.Labels `json:"seriesLabels"`
	Exemplars    []Exemplar    `json:"exemplars"`
}

Jump to

Keyboard shortcuts

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