AlarmStatusSummary

class oci.monitoring.models.AlarmStatusSummary(**kwargs)

Bases: object

A summary of properties for the specified alarm and its current evaluation status. For information about alarms, see Alarms Overview.

To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies.

For information about endpoints and signing API requests, see About the API. For information about available SDKs and tools, see SDKS and Other Tools.

SEVERITY_CRITICAL = 'CRITICAL'

A constant which can be used with the severity property of a AlarmStatusSummary. This constant has a value of "CRITICAL"

SEVERITY_ERROR = 'ERROR'

A constant which can be used with the severity property of a AlarmStatusSummary. This constant has a value of "ERROR"

SEVERITY_INFO = 'INFO'

A constant which can be used with the severity property of a AlarmStatusSummary. This constant has a value of "INFO"

SEVERITY_WARNING = 'WARNING'

A constant which can be used with the severity property of a AlarmStatusSummary. This constant has a value of "WARNING"

STATUS_FIRING = 'FIRING'

A constant which can be used with the status property of a AlarmStatusSummary. This constant has a value of "FIRING"

STATUS_OK = 'OK'

A constant which can be used with the status property of a AlarmStatusSummary. This constant has a value of "OK"

STATUS_SUSPENDED = 'SUSPENDED'

A constant which can be used with the status property of a AlarmStatusSummary. This constant has a value of "SUSPENDED"

__init__(**kwargs)

Initializes a new AlarmStatusSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) -- The value to assign to the id property of this AlarmStatusSummary.
  • display_name (str) -- The value to assign to the display_name property of this AlarmStatusSummary.
  • severity (str) -- The value to assign to the severity property of this AlarmStatusSummary. Allowed values for this property are: "CRITICAL", "ERROR", "WARNING", "INFO", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • timestamp_triggered (datetime) -- The value to assign to the timestamp_triggered property of this AlarmStatusSummary.
  • status (str) -- The value to assign to the status property of this AlarmStatusSummary. Allowed values for this property are: "FIRING", "OK", "SUSPENDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • suppression (Suppression) -- The value to assign to the suppression property of this AlarmStatusSummary.
display_name

[Required] Gets the display_name of this AlarmStatusSummary. The configured name of the alarm.

Example: High CPU Utilization

Returns:The display_name of this AlarmStatusSummary.
Return type:str
id

[Required] Gets the id of this AlarmStatusSummary. The OCID of the alarm.

Returns:The id of this AlarmStatusSummary.
Return type:str
severity

[Required] Gets the severity of this AlarmStatusSummary. The configured severity of the alarm.

Example: CRITICAL

Allowed values for this property are: "CRITICAL", "ERROR", "WARNING", "INFO", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The severity of this AlarmStatusSummary.
Return type:str
status

[Required] Gets the status of this AlarmStatusSummary. The status of this alarm.

Example: FIRING

Allowed values for this property are: "FIRING", "OK", "SUSPENDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The status of this AlarmStatusSummary.
Return type:str
suppression

Gets the suppression of this AlarmStatusSummary. The configuration details for suppressing an alarm.

Returns:The suppression of this AlarmStatusSummary.
Return type:Suppression
timestamp_triggered

[Required] Gets the timestamp_triggered of this AlarmStatusSummary. Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing.

Example: 2019-02-01T01:02:29.600Z

Returns:The timestamp_triggered of this AlarmStatusSummary.
Return type:datetime