public static class AlarmStatusSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AlarmStatusSummary.Builder |
alarmSummary(String alarmSummary)
Customizable alarm summary (
alarmSummary alarm message
parameter). |
AlarmStatusSummary |
build() |
AlarmStatusSummary.Builder |
copy(AlarmStatusSummary model) |
AlarmStatusSummary.Builder |
displayName(String displayName)
The configured name of the alarm.
|
AlarmStatusSummary.Builder |
id(String id)
The OCID
of the alarm.
|
AlarmStatusSummary.Builder |
ruleName(String ruleName)
Identifier of the alarm’s base values for alarm evaluation, for use when the alarm
contains overrides.
|
AlarmStatusSummary.Builder |
severity(AlarmStatusSummary.Severity severity)
The perceived type of response required when the alarm is in the “FIRING” state.
|
AlarmStatusSummary.Builder |
status(AlarmStatusSummary.Status status)
The status of this alarm.
|
AlarmStatusSummary.Builder |
suppression(Suppression suppression)
The configuration details for suppressing an alarm.
|
AlarmStatusSummary.Builder |
timestampTriggered(Date timestampTriggered)
Timestamp for the transition of the alarm state.
|
public AlarmStatusSummary.Builder id(String id)
The OCID of the alarm.
id
- the value to setpublic AlarmStatusSummary.Builder displayName(String displayName)
The configured name of the alarm.
Example: High CPU Utilization
displayName
- the value to setpublic AlarmStatusSummary.Builder severity(AlarmStatusSummary.Severity severity)
The perceived type of response required when the alarm is in the “FIRING” state.
Example: CRITICAL
severity
- the value to setpublic AlarmStatusSummary.Builder ruleName(String ruleName)
Identifier of the alarm’s base values for alarm evaluation, for use when the alarm
contains overrides. Default value is BASE
. For information about alarm overrides,
see alarmOverride
.
ruleName
- the value to setpublic AlarmStatusSummary.Builder timestampTriggered(Date timestampTriggered)
Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics.
Example: 2023-02-01T01:02:29.600Z
timestampTriggered
- the value to setpublic AlarmStatusSummary.Builder alarmSummary(String alarmSummary)
Customizable alarm summary (alarmSummary
alarm message
parameter).
Optionally include dynamic
variables.
The alarm summary appears within the body of the alarm message and in responses to listAlarmsStatus
getAlarmHistory
and retrieveDimensionStates
.
alarmSummary
- the value to setpublic AlarmStatusSummary.Builder status(AlarmStatusSummary.Status status)
The status of this alarm. Status is collective, across all metric streams in the alarm.
To list alarm status for each metric stream, use retrieveDimensionStates
.
Example: FIRING
status
- the value to setpublic AlarmStatusSummary.Builder suppression(Suppression suppression)
The configuration details for suppressing an alarm.
suppression
- the value to setpublic AlarmStatusSummary build()
public AlarmStatusSummary.Builder copy(AlarmStatusSummary model)
Copyright © 2016–2024. All rights reserved.