AlertsSuppressionRuleInner Class

public final class AlertsSuppressionRuleInner
extends ProxyResource

Describes the suppression rule.

Constructor Summary

Constructor Description
AlertsSuppressionRuleInner()

Creates an instance of AlertsSuppressionRuleInner class.

Method Summary

Modifier and Type Method and Description
String alertType()

Get the alertType property: Type of the alert to automatically suppress.

String comment()

Get the comment property: Any comment regarding the rule.

OffsetDateTime expirationDateUtc()

Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.

OffsetDateTime lastModifiedUtc()

Get the lastModifiedUtc property: The last time this rule was modified.

String reason()

Get the reason property: The reason for dismissing the alert.

RuleState state()

Get the state property: Possible states of the rule.

SuppressionAlertsScope suppressionAlertsScope()

Get the suppressionAlertsScope property: The suppression conditions.

void validate()

Validates the instance.

AlertsSuppressionRuleInner withAlertType(String alertType)

Set the alertType property: Type of the alert to automatically suppress.

AlertsSuppressionRuleInner withComment(String comment)

Set the comment property: Any comment regarding the rule.

AlertsSuppressionRuleInner withExpirationDateUtc(OffsetDateTime expirationDateUtc)

Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.

AlertsSuppressionRuleInner withReason(String reason)

Set the reason property: The reason for dismissing the alert.

AlertsSuppressionRuleInner withState(RuleState state)

Set the state property: Possible states of the rule.

AlertsSuppressionRuleInner withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope)

Set the suppressionAlertsScope property: The suppression conditions.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AlertsSuppressionRuleInner

public AlertsSuppressionRuleInner()

Creates an instance of AlertsSuppressionRuleInner class.

Method Details

alertType

public String alertType()

Get the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.

Returns:

the alertType value.

comment

public String comment()

Get the comment property: Any comment regarding the rule.

Returns:

the comment value.

expirationDateUtc

public OffsetDateTime expirationDateUtc()

Get the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.

Returns:

the expirationDateUtc value.

lastModifiedUtc

public OffsetDateTime lastModifiedUtc()

Get the lastModifiedUtc property: The last time this rule was modified.

Returns:

the lastModifiedUtc value.

reason

public String reason()

Get the reason property: The reason for dismissing the alert.

Returns:

the reason value.

state

public RuleState state()

Get the state property: Possible states of the rule.

Returns:

the state value.

suppressionAlertsScope

public SuppressionAlertsScope suppressionAlertsScope()

Get the suppressionAlertsScope property: The suppression conditions.

Returns:

the suppressionAlertsScope value.

validate

public void validate()

Validates the instance.

withAlertType

public AlertsSuppressionRuleInner withAlertType(String alertType)

Set the alertType property: Type of the alert to automatically suppress. For all alert types, use '*'.

Parameters:

alertType - the alertType value to set.

Returns:

the AlertsSuppressionRuleInner object itself.

withComment

public AlertsSuppressionRuleInner withComment(String comment)

Set the comment property: Any comment regarding the rule.

Parameters:

comment - the comment value to set.

Returns:

the AlertsSuppressionRuleInner object itself.

withExpirationDateUtc

public AlertsSuppressionRuleInner withExpirationDateUtc(OffsetDateTime expirationDateUtc)

Set the expirationDateUtc property: Expiration date of the rule, if value is not provided or provided as null there will no expiration at all.

Parameters:

expirationDateUtc - the expirationDateUtc value to set.

Returns:

the AlertsSuppressionRuleInner object itself.

withReason

public AlertsSuppressionRuleInner withReason(String reason)

Set the reason property: The reason for dismissing the alert.

Parameters:

reason - the reason value to set.

Returns:

the AlertsSuppressionRuleInner object itself.

withState

public AlertsSuppressionRuleInner withState(RuleState state)

Set the state property: Possible states of the rule.

Parameters:

state - the state value to set.

Returns:

the AlertsSuppressionRuleInner object itself.

withSuppressionAlertsScope

public AlertsSuppressionRuleInner withSuppressionAlertsScope(SuppressionAlertsScope suppressionAlertsScope)

Set the suppressionAlertsScope property: The suppression conditions.

Parameters:

suppressionAlertsScope - the suppressionAlertsScope value to set.

Returns:

the AlertsSuppressionRuleInner object itself.

Applies to