Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: indicatordocument.GroupName, Version: "v1alpha1"}
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 Indicator ¶
type Indicator struct {
Name string `json:"name"`
Promql string `json:"promql"`
Alert Alert `json:"alert"`
Thresholds []Threshold `json:"thresholds"`
Documentation map[string]string `json:"documentation"`
}
func (*Indicator) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Indicator.
func (*Indicator) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IndicatorDocument ¶
type IndicatorDocument struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec IndicatorDocumentSpec `json:"spec"`
Status IndicatorDocumentStatus `json:"status"`
}
IndicatorDocument is a specification for a IndicatorDocument resource
func (*IndicatorDocument) DeepCopy ¶
func (in *IndicatorDocument) DeepCopy() *IndicatorDocument
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndicatorDocument.
func (*IndicatorDocument) DeepCopyInto ¶
func (in *IndicatorDocument) DeepCopyInto(out *IndicatorDocument)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IndicatorDocument) DeepCopyObject ¶
func (in *IndicatorDocument) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IndicatorDocumentList ¶
type IndicatorDocumentList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []IndicatorDocument `json:"items"`
}
IndicatorDocumentList is a list of IndicatorDocument resources
func (*IndicatorDocumentList) DeepCopy ¶
func (in *IndicatorDocumentList) DeepCopy() *IndicatorDocumentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndicatorDocumentList.
func (*IndicatorDocumentList) DeepCopyInto ¶
func (in *IndicatorDocumentList) DeepCopyInto(out *IndicatorDocumentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IndicatorDocumentList) DeepCopyObject ¶
func (in *IndicatorDocumentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IndicatorDocumentSpec ¶
type IndicatorDocumentSpec struct {
Product Product `json:"product"`
Indicators []Indicator `json:"indicators"`
Layout Layout `json:"layout"`
}
IndicatorDocumentSpec is the spec for a IndicatorDocument resource
func (*IndicatorDocumentSpec) DeepCopy ¶
func (in *IndicatorDocumentSpec) DeepCopy() *IndicatorDocumentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndicatorDocumentSpec.
func (*IndicatorDocumentSpec) DeepCopyInto ¶
func (in *IndicatorDocumentSpec) DeepCopyInto(out *IndicatorDocumentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IndicatorDocumentStatus ¶
type IndicatorDocumentStatus struct {
AvailableReplicas int32 `json:"availableReplicas"`
}
IndicatorDocumentStatus is the status for a IndicatorDocument resource
func (*IndicatorDocumentStatus) DeepCopy ¶
func (in *IndicatorDocumentStatus) DeepCopy() *IndicatorDocumentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndicatorDocumentStatus.
func (*IndicatorDocumentStatus) DeepCopyInto ¶
func (in *IndicatorDocumentStatus) DeepCopyInto(out *IndicatorDocumentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Layout ¶
type Layout struct {
Owner string `json:"owner"`
Title string `json:"title"`
Description string `json:"description"`
Sections []Section `json:"sections"`
}
func (*Layout) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Layout.
func (*Layout) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Product ¶
func (*Product) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Product.
func (*Product) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Section ¶
type Section struct {
Name string `json:"name"`
Description string `json:"description"`
Indicators []string `json:"indicators"`
}
func (*Section) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Section.
func (*Section) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Threshold ¶
type Threshold struct {
Level string `json:"level"`
Lt *float64 `json:"lt"`
Lte *float64 `json:"lte"`
Eq *float64 `json:"eq"`
Neq *float64 `json:"neq"`
Gte *float64 `json:"gte"`
Gt *float64 `json:"gt"`
}
func (*Threshold) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Threshold.
func (*Threshold) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.