Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API. +groupName=config.prometheus.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: config.GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Rule ¶
type Rule struct { Record string `json:"record,omitempty"` Alert string `json:"alert,omitempty"` Expr string `json:"expr"` For string `json:"for,omitempty"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
Rule describes an alerting or recording rule.
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleGroup ¶
type RuleGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RuleGroupSpec `json:"spec"` Status RuleGroupStatus `json:"status,omitempty"` }
+kubebuilder:subresource:status +kubebuilder:printcolumn:name="Rules",type=integer,JSONPath=`.status.recordingRules` +kubebuilder:printcolumn:name="Alerts",type=integer,JSONPath=`.status.alertRules` +kubebuilder:printcolumn:name="Errors",type=integer,JSONPath=`.status.errorCount` RuleGroup
func (*RuleGroup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroup.
func (*RuleGroup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleGroup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleGroupList ¶
type RuleGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []RuleGroup `json:"items"` }
RuleGroupList is a list of rule group resources
func (*RuleGroupList) DeepCopy ¶
func (in *RuleGroupList) DeepCopy() *RuleGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroupList.
func (*RuleGroupList) DeepCopyInto ¶
func (in *RuleGroupList) DeepCopyInto(out *RuleGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleGroupList) DeepCopyObject ¶
func (in *RuleGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleGroupSpec ¶
type RuleGroupSpec struct { Interval string `json:"interval,omitempty"` Rules []Rule `json:"rules"` }
RuleGroupSpec is the spec for a rule group resource
func (*RuleGroupSpec) DeepCopy ¶
func (in *RuleGroupSpec) DeepCopy() *RuleGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroupSpec.
func (*RuleGroupSpec) DeepCopyInto ¶
func (in *RuleGroupSpec) DeepCopyInto(out *RuleGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleGroupStatus ¶
type RuleGroupStatus struct { RecordingRuleCount int `json:"recordingRules"` AlertRuleCount int `json:"alertRules"` ErrorCount int `json:"errorCount"` Errors []string `json:"errors,omitempty"` }
RuleGroupStatus is the status for a rule group resource
func (*RuleGroupStatus) DeepCopy ¶
func (in *RuleGroupStatus) DeepCopy() *RuleGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleGroupStatus.
func (*RuleGroupStatus) DeepCopyInto ¶
func (in *RuleGroupStatus) DeepCopyInto(out *RuleGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Scrape ¶
type Scrape struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScrapeSpec `json:"spec"` Status ScrapeStatus `json:"status,omitempty"` }
+kubebuilder:subresource:status +kubebuilder:printcolumn:name="Errors",type=integer,JSONPath=`.status.errorCount` Scrape
func (*Scrape) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scrape.
func (*Scrape) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Scrape) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScrapeList ¶
type ScrapeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Scrape `json:"items"` }
ScrapeList is a list of Foo resources
func (*ScrapeList) DeepCopy ¶
func (in *ScrapeList) DeepCopy() *ScrapeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScrapeList.
func (*ScrapeList) DeepCopyInto ¶
func (in *ScrapeList) DeepCopyInto(out *ScrapeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScrapeList) DeepCopyObject ¶
func (in *ScrapeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScrapeStatus ¶ added in v0.3.4
type ScrapeStatus struct { ErrorCount int `json:"errorCount"` Errors []string `json:"errors,omitempty"` }
ScrapeStatus is the status for a scrape resource
func (*ScrapeStatus) DeepCopy ¶ added in v0.3.4
func (in *ScrapeStatus) DeepCopy() *ScrapeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScrapeStatus.
func (*ScrapeStatus) DeepCopyInto ¶ added in v0.3.4
func (in *ScrapeStatus) DeepCopyInto(out *ScrapeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.