Documentation
¶
Overview ¶
+groupName=monitoring.openshift.io
Index ¶
Constants ¶
const GroupName = "monitoring.openshift.io"
GroupName is the group name used in this package.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: GroupName, Version: "v1alpha1", }
SchemeGroupVersion is the 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 resource.
Types ¶
type AWXJobAction ¶
type AWXJobAction struct {
// Address is the complete URL used to access the API of the AWX server.
// +optional
Address string `json:"address,omitempty" protobuf:"bytes,1,opt,name=address`
// Proxy is the address of the proxy server used to access the API of the AWX server.
// +optional
Proxy string `json:"proxy,omitempty" protobuf:"bytes,2,opt,name=proxy`
// SecretRef is the reference (name, and optionally namespace) of the secret that contains the
// user name and password used to access the AWX API.
// +optional
SecretRef *core.SecretReference `json:"secretRef,omitempty" protobuf:"bytes,3,opt,name=secretRef`
// Project is the name of the AWX project that contains the job template.
// +optional
Project string `json:"project,omitempty" protobuf:"bytes,4,opt,name=project`
// Template is the name of the AWX job template that will be launched.
// +optional
Template string `json:"template,omitempty" protobuf:"bytes,5,opt,name=template`
// ExtraVars are the extra variables that will be passed to job.
// +optional
ExtraVars string `json:"extraVars,omitempty" protobuf:"bytes,5,opt,name=extraVars`
}
AWXJobAction describes how to run an Ansible AWX job.
func (*AWXJobAction) DeepCopy ¶
func (in *AWXJobAction) DeepCopy() *AWXJobAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWXJobAction.
func (*AWXJobAction) DeepCopyInto ¶
func (in *AWXJobAction) DeepCopyInto(out *AWXJobAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Delimiters ¶
type Delimiters struct {
Left string `json:"left,omitempty" protobuf:"bytes,1,opt,name=left`
Right string `json:"right,omitempty" protobuf:"bytes,2,opt,name=right`
}
Delimiters indicates the delimiters used to mark expressions inside text templates.
func (*Delimiters) DeepCopy ¶
func (in *Delimiters) DeepCopy() *Delimiters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Delimiters.
func (*Delimiters) DeepCopyInto ¶
func (in *Delimiters) DeepCopyInto(out *Delimiters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealingAction ¶
type HealingAction struct {
// Delimiters indicates the delimiters that will be used in the text templates instead of the
// default {{ and }} used in Go templates. This is specially convenient when the text of the
// action contains an Ansible playbook, as the Go delimeters conflict with the Jinja2
// delimiters.
// +optional
Delimiters *Delimiters `json:"delimiters,omitempty" protobuf:"bytes,1,opt,name=delimiters`
// AWXJob is used when the healing action is implemented by an Ansible AWX job.
// +optional
AWXJob *AWXJobAction `json:"awxJob,omitempty" protobuf:"bytes,2,opt,name=awxJob`
// BatchJob is used when the healing action is implemented by a Kubernetes batch job.
// +optional
BatchJob *batch.Job `json:"batchJob,omitempty" protobuf:"bytes,3,opt,name=batchJob`
}
HealingAction represents an action that will be performed when a healing rule is activated.
func (*HealingAction) DeepCopy ¶
func (in *HealingAction) DeepCopy() *HealingAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealingAction.
func (*HealingAction) DeepCopyInto ¶
func (in *HealingAction) DeepCopyInto(out *HealingAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealingCondition ¶
type HealingCondition struct {
// Alert is the name of an alert that has to exist for this condition to be true.
// +optional
Alert string `json:"alert,omitempty" protobuf:"bytes,1,opt,name=alert`
}
HealingCondition represents a condition for the activation of a healing rule.
func (*HealingCondition) DeepCopy ¶
func (in *HealingCondition) DeepCopy() *HealingCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealingCondition.
func (*HealingCondition) DeepCopyInto ¶
func (in *HealingCondition) DeepCopyInto(out *HealingCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealingRule ¶
type HealingRule struct {
meta.TypeMeta `json:",inline"`
// Standard object metadata.
// +optional
meta.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Spec defines the healing rule.
// +optional
Spec HealingRuleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec`
// Status represents the current information about an healing rule.
// +optional
Status HealingRuleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=spec`
}
HealingRule is the description of an healing rule.
func (*HealingRule) DeepCopy ¶
func (in *HealingRule) DeepCopy() *HealingRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealingRule.
func (*HealingRule) DeepCopyInto ¶
func (in *HealingRule) DeepCopyInto(out *HealingRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HealingRule) DeepCopyObject ¶
func (in *HealingRule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HealingRuleList ¶
type HealingRuleList struct {
meta.TypeMeta `json:",inline"`
// Standard list metadata.
// +optional
meta.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// List of alerting rules.
Items []HealingRule `json:"items" protobuf:"bytes,2,rep,name=items"`
}
HealingRuleList is a list of alerting rules.
func (*HealingRuleList) DeepCopy ¶
func (in *HealingRuleList) DeepCopy() *HealingRuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealingRuleList.
func (*HealingRuleList) DeepCopyInto ¶
func (in *HealingRuleList) DeepCopyInto(out *HealingRuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HealingRuleList) DeepCopyObject ¶
func (in *HealingRuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HealingRuleSpec ¶
type HealingRuleSpec struct {
// Conditions is the set of conditions that should be true for the rule to be activated.
// +optional
Conditions []HealingCondition `json:"conditions" protobuf:"bytes,1,rep,name=conditions`
// Actions is the set of healing actions that will be executed when the rule is activated.
// +optional
Actions []HealingAction `json:"actions" protobuf:"bytes,2,rep,name=conditions`
}
HealingRuleSpec is the specification for a healing rule.
func (*HealingRuleSpec) DeepCopy ¶
func (in *HealingRuleSpec) DeepCopy() *HealingRuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealingRuleSpec.
func (*HealingRuleSpec) DeepCopyInto ¶
func (in *HealingRuleSpec) DeepCopyInto(out *HealingRuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HealingRuleStatus ¶
type HealingRuleStatus struct {
}
HealingRuleStatus is the status for an alerting rule.
func (*HealingRuleStatus) DeepCopy ¶
func (in *HealingRuleStatus) DeepCopy() *HealingRuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealingRuleStatus.
func (*HealingRuleStatus) DeepCopyInto ¶
func (in *HealingRuleStatus) DeepCopyInto(out *HealingRuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.