metricquery

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueryFactories

func GetQueryFactories() map[string]QueryFactory

func RegisterMetricQuery

func RegisterMetricQuery(typeName string, factory QueryFactory)

Types

type MetricQuery

type MetricQuery interface {
	ExecuteQuery(userCred mcclient.TokenCredential, scope string, forceCheckSeries bool) (*monitor.MetricsQueryResult, error)
}

type QueryFactory

type QueryFactory func(model []*monitor.AlertCondition) (MetricQuery, error)

Jump to

Keyboard shortcuts

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