Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Alert
- type Indicator
- type IndicatorDocument
- type IndicatorDocumentList
- type IndicatorDocumentSpec
- type IndicatorDocumentStatus
- type IndicatorList
- type IndicatorSpec
- type Layout
- type Product
- type Section
- type Threshold
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 Alert ¶
func (*Alert) DeepCopy ¶ added in v0.7.9
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alert.
func (*Alert) DeepCopyInto ¶ added in v0.7.9
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Indicator ¶
type Indicator struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec IndicatorSpec
}
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.
func (*Indicator) DeepCopyObject ¶ added in v0.7.9
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 []IndicatorSpec `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 IndicatorList ¶ added in v0.7.9
type IndicatorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Indicator `json:"items"`
}
IndicatorList is a list of Indicator resources
func (*IndicatorList) DeepCopy ¶ added in v0.7.9
func (in *IndicatorList) DeepCopy() *IndicatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndicatorList.
func (*IndicatorList) DeepCopyInto ¶ added in v0.7.9
func (in *IndicatorList) DeepCopyInto(out *IndicatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IndicatorList) DeepCopyObject ¶ added in v0.7.9
func (in *IndicatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IndicatorSpec ¶ added in v0.7.9
type IndicatorSpec struct {
Name string `json:"name"`
Promql string `json:"promql"`
Alert Alert `json:"alert"`
Thresholds []Threshold `json:"thresholds"`
Documentation map[string]string `json:"documentation,omitempty"`
}
func (*IndicatorSpec) DeepCopy ¶ added in v0.7.9
func (in *IndicatorSpec) DeepCopy() *IndicatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndicatorSpec.
func (*IndicatorSpec) DeepCopyInto ¶ added in v0.7.9
func (in *IndicatorSpec) DeepCopyInto(out *IndicatorSpec)
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,omitempty"`
Lt *float64 `json:"lt,omitempty"`
Lte *float64 `json:"lte,omitempty"`
Eq *float64 `json:"eq,omitempty"`
Neq *float64 `json:"neq,omitempty"`
Gte *float64 `json:"gte,omitempty"`
Gt *float64 `json:"gt,omitempty"`
}
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.