metricnaming

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryBuilder

func NewQueryBuilder(metric *metricquery.Metric) querybuilder.QueryBuilder

Types

type GeneralMetricNamer

type GeneralMetricNamer struct {
	Metric *metricquery.Metric
}

func (*GeneralMetricNamer) BuildUniqueKey

func (gmn *GeneralMetricNamer) BuildUniqueKey() string

func (*GeneralMetricNamer) QueryBuilder

func (gmn *GeneralMetricNamer) QueryBuilder() querybuilder.QueryBuilder

func (*GeneralMetricNamer) Validate

func (gmn *GeneralMetricNamer) Validate() error

type MetricNamer

type MetricNamer interface {
	// Used for datasource provider, data source provider call QueryBuilder
	QueryBuilder() querybuilder.QueryBuilder
	// Used for predictor now
	BuildUniqueKey() string

	Validate() error
}

MetricNamer is an interface. it is the bridge between predictor and different data sources and other component.

Jump to

Keyboard shortcuts

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