Class RulesAlert
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.RulesAlert
-
- All Implemented Interfaces:
Editable<RulesAlertBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RulesAlert extends Object implements Editable<RulesAlertBuilder>, KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RulesAlert()No args constructor for use in serializationRulesAlert(String forGracePeriod, String forOutageTolerance, String resendDelay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RulesAlertBuilderedit()Map<String,Object>getAdditionalProperties()StringgetForGracePeriod()forGracePeriod defines the minimum duration between alert and restored 'for' state.StringgetForOutageTolerance()forOutageTolerance defines the max time to tolerate prometheus outage for restoring 'for' state of alert.StringgetResendDelay()resendDelay defines the minimum amount of time to wait before resending an alert to Alertmanager.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetForGracePeriod(String forGracePeriod)forGracePeriod defines the minimum duration between alert and restored 'for' state.voidsetForOutageTolerance(String forOutageTolerance)forOutageTolerance defines the max time to tolerate prometheus outage for restoring 'for' state of alert.voidsetResendDelay(String resendDelay)resendDelay defines the minimum amount of time to wait before resending an alert to Alertmanager.RulesAlertBuildertoBuilder()
-
-
-
Method Detail
-
getForGracePeriod
public String getForGracePeriod()
forGracePeriod defines the minimum duration between alert and restored 'for' state.This is maintained only for alerts with a configured 'for' time greater than the grace period.
-
setForGracePeriod
public void setForGracePeriod(String forGracePeriod)
forGracePeriod defines the minimum duration between alert and restored 'for' state.This is maintained only for alerts with a configured 'for' time greater than the grace period.
-
getForOutageTolerance
public String getForOutageTolerance()
forOutageTolerance defines the max time to tolerate prometheus outage for restoring 'for' state of alert.
-
setForOutageTolerance
public void setForOutageTolerance(String forOutageTolerance)
forOutageTolerance defines the max time to tolerate prometheus outage for restoring 'for' state of alert.
-
getResendDelay
public String getResendDelay()
resendDelay defines the minimum amount of time to wait before resending an alert to Alertmanager.
-
setResendDelay
public void setResendDelay(String resendDelay)
resendDelay defines the minimum amount of time to wait before resending an alert to Alertmanager.
-
edit
public RulesAlertBuilder edit()
- Specified by:
editin interfaceEditable<RulesAlertBuilder>
-
toBuilder
public RulesAlertBuilder toBuilder()
-
-