Class RuleGroup
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.RuleGroup
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RuleGroupBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RuleGroup extends Object implements io.fabric8.kubernetes.api.builder.Editable<RuleGroupBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RuleGroup is a list of sequentially evaluated alerting rules.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleGroupBuilderedit()Map<String,Object>getAdditionalProperties()StringgetInterval()interval is how often rules in the group are evaluated.StringgetName()name is the name of the group.List<Rule>getRules()rules is a list of sequentially evaluated alerting rules.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetInterval(String interval)interval is how often rules in the group are evaluated.voidsetName(String name)name is the name of the group.voidsetRules(List<Rule> rules)rules is a list of sequentially evaluated alerting rules.RuleGroupBuildertoBuilder()
-
-
-
Method Detail
-
getInterval
public String getInterval()
interval is how often rules in the group are evaluated. If not specified, it defaults to the global.evaluation_interval configured in Prometheus, which itself defaults to 30 seconds. You can check if this value has been modified from the default on your cluster by inspecting the platform Prometheus configuration: The relevant field in that resource is: spec.evaluationInterval
-
setInterval
public void setInterval(String interval)
interval is how often rules in the group are evaluated. If not specified, it defaults to the global.evaluation_interval configured in Prometheus, which itself defaults to 30 seconds. You can check if this value has been modified from the default on your cluster by inspecting the platform Prometheus configuration: The relevant field in that resource is: spec.evaluationInterval
-
getName
public String getName()
name is the name of the group.
-
setName
public void setName(String name)
name is the name of the group.
-
getRules
public List<Rule> getRules()
rules is a list of sequentially evaluated alerting rules. Prometheus may process rule groups in parallel, but rules within a single group are always processed sequentially, and all rules are processed.
-
setRules
public void setRules(List<Rule> rules)
rules is a list of sequentially evaluated alerting rules. Prometheus may process rule groups in parallel, but rules within a single group are always processed sequentially, and all rules are processed.
-
edit
public RuleGroupBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RuleGroupBuilder>
-
toBuilder
public RuleGroupBuilder toBuilder()
-
-