Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=monitoring
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: examplecom.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func CompareAlert ¶ added in v1.1.0
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Alert ¶
type Alert struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlertSpec `json:"spec"` }
Alert describes a database.
func (*Alert) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alert.
func (*Alert) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Alert) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertList ¶
type AlertList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Alert `json:"items"` }
AlertList is a list of Alert resources
func (*AlertList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertList.
func (*AlertList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertSpec ¶
type AlertSpec struct { Name string `json:"name" yaml:"name"` Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"` Expression string `json:"expression,omitempty" yaml:"expression,omitempty"` For string `json:"for,omitempty" yaml:"for,omitempty"` Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` }
AlertSpec is the spec for a Foo resource
func (*AlertSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpec.
func (*AlertSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertSpecs ¶
type AlertSpecs []AlertSpec
func (AlertSpecs) Contains ¶ added in v1.3.0
func (a AlertSpecs) Contains(name string) bool
func (AlertSpecs) DeepCopy ¶
func (in AlertSpecs) DeepCopy() AlertSpecs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpecs.
func (AlertSpecs) DeepCopyInto ¶
func (in AlertSpecs) DeepCopyInto(out *AlertSpecs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Alerts ¶
type Alerts []Alert
func (Alerts) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alerts.
func (Alerts) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Alerts) Specs ¶
func (a Alerts) Specs() AlertSpecs
type AlertsSorted ¶ added in v1.1.0
type AlertsSorted []Alert
func (AlertsSorted) Len ¶ added in v1.1.0
func (b AlertsSorted) Len() int
func (AlertsSorted) Less ¶ added in v1.1.0
func (b AlertsSorted) Less(i, j int) bool
func (AlertsSorted) Swap ¶ added in v1.1.0
func (b AlertsSorted) Swap(i, j int)