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