Documentation
¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the observability v1alpha2 API group +kubebuilder:object:generate=true +groupName=observability.giantswarm.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "observability.giantswarm.io", Version: "v1alpha2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type MatchType ¶
type MatchType string
MatchType defines the type of matching for alert matchers. +kubebuilder:validation:Enum==;!=;=~;!~
const ( // MatchEqual matches alerts where the label value exactly equals the matcher value MatchEqual MatchType = "=" // MatchNotEqual matches alerts where the label value does not equal the matcher value MatchNotEqual MatchType = "!=" // MatchRegexMatch matches alerts where the label value matches the regex pattern MatchRegexMatch MatchType = "=~" // MatchRegexNotMatch matches alerts where the label value does not match the regex pattern MatchRegexNotMatch MatchType = "!~" )
type Silence ¶
type Silence struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SilenceSpec `json:"spec,omitempty"`
}
Silence is the Schema for the silences API. +kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
func (*Silence) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Silence.
func (*Silence) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Silence) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SilenceList ¶
type SilenceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Silence `json:"items"`
}
SilenceList contains a list of Silence. +kubebuilder:object:root=true
func (*SilenceList) DeepCopy ¶
func (in *SilenceList) DeepCopy() *SilenceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SilenceList.
func (*SilenceList) DeepCopyInto ¶
func (in *SilenceList) DeepCopyInto(out *SilenceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SilenceList) DeepCopyObject ¶
func (in *SilenceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SilenceMatcher ¶
type SilenceMatcher struct {
// Name of the label to match.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=256
Name string `json:"name"`
// Value to match for the given label name.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MaxLength=1024
Value string `json:"value"`
// MatchType defines the type of matching to perform.
// +kubebuilder:default="="
// +optional
MatchType MatchType `json:"matchType,omitempty"`
}
SilenceMatcher defines an alert matcher to be muted by the Silence.
func (*SilenceMatcher) DeepCopy ¶
func (in *SilenceMatcher) DeepCopy() *SilenceMatcher
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SilenceMatcher.
func (*SilenceMatcher) DeepCopyInto ¶
func (in *SilenceMatcher) DeepCopyInto(out *SilenceMatcher)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SilenceSpec ¶
type SilenceSpec struct {
// Matchers defines the alert matchers that this silence will apply to.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems=1
Matchers []SilenceMatcher `json:"matchers"`
}
SilenceSpec defines the desired state of Silence.
func (*SilenceSpec) DeepCopy ¶
func (in *SilenceSpec) DeepCopy() *SilenceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SilenceSpec.
func (*SilenceSpec) DeepCopyInto ¶
func (in *SilenceSpec) DeepCopyInto(out *SilenceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.