Class Condition.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.Condition.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Condition.Builder
body(String body)
The human-readable content of the delivered alarm notification.Condition
build()
Condition.Builder
copy(Condition model)
Condition.Builder
query(String query)
The Monitoring Query Language (MQL) expression to evaluate for the alarm.Condition.Builder
severity(AlarmConditionSeverity severity)
Severity - Critical/WarningCondition.Builder
shouldAppendNote(Boolean shouldAppendNote)
Whether the note need to add into bottom of the body for mapping the alarms information with template or not.Condition.Builder
shouldAppendUrl(Boolean shouldAppendUrl)
Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.Condition.Builder
triggerDelay(String triggerDelay)
The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING”.
-
-
-
Method Detail
-
severity
public Condition.Builder severity(AlarmConditionSeverity severity)
Severity - Critical/Warning- Parameters:
severity
- the value to set- Returns:
- this builder
-
query
public Condition.Builder query(String query)
The Monitoring Query Language (MQL) expression to evaluate for the alarm.- Parameters:
query
- the value to set- Returns:
- this builder
-
body
public Condition.Builder body(String body)
The human-readable content of the delivered alarm notification.Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.
- Parameters:
body
- the value to set- Returns:
- this builder
-
shouldAppendNote
public Condition.Builder shouldAppendNote(Boolean shouldAppendNote)
Whether the note need to add into bottom of the body for mapping the alarms information with template or not.- Parameters:
shouldAppendNote
- the value to set- Returns:
- this builder
-
shouldAppendUrl
public Condition.Builder shouldAppendUrl(Boolean shouldAppendUrl)
Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.- Parameters:
shouldAppendUrl
- the value to set- Returns:
- this builder
-
triggerDelay
public Condition.Builder triggerDelay(String triggerDelay)
The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING”.- Parameters:
triggerDelay
- the value to set- Returns:
- this builder
-
build
public Condition build()
-
copy
public Condition.Builder copy(Condition model)
-
-