Class AlertingRuleSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.AlertingRuleSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AlertingRuleSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AlertingRuleSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<AlertingRuleSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
AlertingRuleSpec is the desired state of an AlertingRule resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlertingRuleSpec()No args constructor for use in serializationAlertingRuleSpec(List<RuleGroup> groups)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertingRuleSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<RuleGroup>getGroups()groups is a list of grouped alerting rules.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetGroups(List<RuleGroup> groups)groups is a list of grouped alerting rules.AlertingRuleSpecBuildertoBuilder()
-
-
-
Method Detail
-
getGroups
public List<RuleGroup> getGroups()
groups is a list of grouped alerting rules. Rule groups are the unit at which Prometheus parallelizes rule processing. All rules in a single group share a configured evaluation interval. All rules in the group will be processed together on this interval, sequentially, and all rules will be processed.It's common to group related alerting rules into a single AlertingRule resources, and within that resource, closely related alerts, or simply alerts with the same interval, into individual groups. You are also free to create AlertingRule resources with only a single rule group, but be aware that this can have a performance impact on Prometheus if the group is extremely large or has very complex query expressions to evaluate. Spreading very complex rules across multiple groups to allow them to be processed in parallel is also a common use-case.
-
setGroups
public void setGroups(List<RuleGroup> groups)
groups is a list of grouped alerting rules. Rule groups are the unit at which Prometheus parallelizes rule processing. All rules in a single group share a configured evaluation interval. All rules in the group will be processed together on this interval, sequentially, and all rules will be processed.It's common to group related alerting rules into a single AlertingRule resources, and within that resource, closely related alerts, or simply alerts with the same interval, into individual groups. You are also free to create AlertingRule resources with only a single rule group, but be aware that this can have a performance impact on Prometheus if the group is extremely large or has very complex query expressions to evaluate. Spreading very complex rules across multiple groups to allow them to be processed in parallel is also a common use-case.
-
edit
public AlertingRuleSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AlertingRuleSpecBuilder>
-
toBuilder
public AlertingRuleSpecBuilder toBuilder()
-
-