Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "metrics"
Name is the name of the metrics condition type
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface { // Init initializes the metrics provider Init(params Params) error // Query executes query based on the provided conditions and returns a vector of metrics values Query( conditions v1alpha1.RuleConditions, labelSelector map[string]string, ) (*QueryResponse, error) }
Provider defines a simple interface for metrics providers to collect and extract data
type QueryMatch ¶
type QueryMatch struct { // Condition is the condition for the query match Condition *v1alpha1.LabelSelectorRequirement // Vectors are the matches vectors for above condition Vectors []Vector }
QueryMatch represents a single matched condition and it's vectors
type QueryResponse ¶
type QueryResponse struct { // Matches are the matches for the query Matches []QueryMatch }
QueryResponse is the response for the Query method
Click to show internal directories.
Click to hide internal directories.