Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplyCmd ¶
NewApplyCmd creates the top-level apply command
Types ¶
type PrometheusRule ¶
type PrometheusRule struct {
APIVersion string `yaml:"apiVersion" json:"apiVersion"`
Kind string `yaml:"kind" json:"kind"`
Metadata PrometheusRuleMetadata `yaml:"metadata" json:"metadata"`
Spec PrometheusRuleSpec `yaml:"spec" json:"spec"`
}
PrometheusRule represents the Prometheus Operator PrometheusRule CRD
type PrometheusRuleGroup ¶
type PrometheusRuleGroup struct {
Name string `yaml:"name" json:"name"`
Interval string `yaml:"interval,omitempty" json:"interval,omitempty"`
Rules []PrometheusRule_ `yaml:"rules" json:"rules"`
}
PrometheusRuleGroup represents a group of alerting rules
type PrometheusRuleMetadata ¶
type PrometheusRuleMetadata struct {
Name string `yaml:"name,omitempty" json:"name,omitempty"`
Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"`
Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"`
Annotations map[string]string `yaml:"annotations,omitempty" json:"annotations,omitempty"`
}
PrometheusRuleMetadata contains metadata for a PrometheusRule
type PrometheusRuleSpec ¶
type PrometheusRuleSpec struct {
Groups []PrometheusRuleGroup `yaml:"groups" json:"groups"`
}
PrometheusRuleSpec contains the spec for a PrometheusRule
type PrometheusRule_ ¶
type PrometheusRule_ struct {
Alert string `yaml:"alert,omitempty" json:"alert,omitempty"`
Expr string `yaml:"expr" json:"expr"`
For string `yaml:"for,omitempty" json:"for,omitempty"`
Labels map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"`
Annotations map[string]string `yaml:"annotations,omitempty" json:"annotations,omitempty"`
}
PrometheusRule_ represents an individual alerting rule within a group
Click to show internal directories.
Click to hide internal directories.