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.
Click to show internal directories.
Click to hide internal directories.