Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusQuery ¶
type PrometheusQuery struct {
connection.PrometheusConnection `json:",inline" yaml:",inline"`
// Query is the PromQL query string
Query string `json:"query" yaml:"query"`
}
+kubebuilder:object:generate=true PrometheusQuery defines a Prometheus query configuration
func (*PrometheusQuery) DeepCopy ¶
func (in *PrometheusQuery) DeepCopy() *PrometheusQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusQuery.
func (*PrometheusQuery) DeepCopyInto ¶
func (in *PrometheusQuery) DeepCopyInto(out *PrometheusQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Query ¶
type Query struct {
// Prometheus queries metrics from Prometheus
Prometheus *PrometheusQuery `json:"prometheus,omitempty" yaml:"prometheus,omitempty"`
}
+kubebuilder:object:generate=true
func (*Query) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Query.
func (*Query) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type QueryResultRow ¶
func ExecuteQuery ¶
func ExecuteQuery(ctx context.Context, q Query) ([]QueryResultRow, error)
ExecuteQuery executes a single query and returns results with query name
Click to show internal directories.
Click to hide internal directories.