ThresholdCustomAlertRule Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. CustomAlertRule - com.
azure. resourcemanager. security. models. ThresholdCustomAlertRule
- com.
- com.
public class ThresholdCustomAlertRule
extends CustomAlertRule
A custom alert rule that checks if a value (depends on the custom alert type) is within the given range.
Constructor Summary
| Constructor | Description |
|---|---|
| ThresholdCustomAlertRule() |
Creates an instance of Threshold |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Threshold |
fromJson(JsonReader jsonReader)
Reads an instance of Threshold |
| int |
maxThreshold()
Get the max |
| int |
minThreshold()
Get the min |
| String |
ruleType()
Get the rule |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Threshold |
withIsEnabled(boolean isEnabled)
Set the is |
|
Threshold |
withMaxThreshold(int maxThreshold)
Set the max |
|
Threshold |
withMinThreshold(int minThreshold)
Set the min |
Methods inherited from CustomAlertRule
Methods inherited from java.lang.Object
Constructor Details
ThresholdCustomAlertRule
public ThresholdCustomAlertRule()
Creates an instance of ThresholdCustomAlertRule class.
Method Details
fromJson
public static ThresholdCustomAlertRule fromJson(JsonReader jsonReader)
Reads an instance of ThresholdCustomAlertRule from the JsonReader.
Parameters:
Returns:
Throws:
maxThreshold
public int maxThreshold()
Get the maxThreshold property: The maximum threshold.
Returns:
minThreshold
public int minThreshold()
Get the minThreshold property: The minimum threshold.
Returns:
ruleType
public String ruleType()
Get the ruleType property: The type of the custom alert rule.
Overrides:
ThresholdCustomAlertRule.ruleType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ThresholdCustomAlertRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
ThresholdCustomAlertRule.validate()withIsEnabled
public ThresholdCustomAlertRule withIsEnabled(boolean isEnabled)
Set the isEnabled property: Status of the custom alert.
Overrides:
ThresholdCustomAlertRule.withIsEnabled(boolean isEnabled)Parameters:
withMaxThreshold
public ThresholdCustomAlertRule withMaxThreshold(int maxThreshold)
Set the maxThreshold property: The maximum threshold.
Parameters:
Returns:
withMinThreshold
public ThresholdCustomAlertRule withMinThreshold(int minThreshold)
Set the minThreshold property: The minimum threshold.
Parameters:
Returns: