metric

package
v0.0.0-...-23e8124 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DimensionTopNMetric

type DimensionTopNMetric struct {
	MetricType   MetricType           `json:"type"`
	Ordering     sorting.SortingOrder `json:"ordering,omitempty"`
	PreviousStop string               `json:"previousStop,omitempty"`
}

func (DimensionTopNMetric) Type

func (d DimensionTopNMetric) Type() string

type InvertedTopNMetric

type InvertedTopNMetric struct {
	MetricType MetricType `json:"type"`
	Metric     Metric     `json:"metric"`
}

type Metric

type Metric interface {
	Type() string
}

type MetricType

type MetricType int
const (
	NUMERIC MetricType = iota
	DIMENSION
	INVERTED
)

func (MetricType) MarshalJSON

func (t MetricType) MarshalJSON() ([]byte, error)

func (MetricType) Name

func (t MetricType) Name() string

func (MetricType) Ordinal

func (t MetricType) Ordinal() int

func (MetricType) Values

func (t MetricType) Values() *[]string

type NumericTopNMetric

type NumericTopNMetric struct {
	MetricType MetricType `json:"type"`
	Metric     Metric     `json:"metric"`
}

func (NumericTopNMetric) Type

func (n NumericTopNMetric) Type() string

type SimpleTopNMetric

type SimpleTopNMetric string

func (SimpleTopNMetric) Type

func (s SimpleTopNMetric) Type() string

Jump to

Keyboard shortcuts

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