AlarmSuppressionAlarmTarget

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

Bases: oci.monitoring.models.alarm_suppression_target.AlarmSuppressionTarget

The alarm target of the alarm suppression.

Attributes

TARGET_TYPE_ALARM str(object=’’) -> str
alarm_id [Required] Gets the alarm_id of this AlarmSuppressionAlarmTarget.
target_type [Required] Gets the target_type of this AlarmSuppressionTarget.

Methods

__init__(**kwargs) Initializes a new AlarmSuppressionAlarmTarget object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
TARGET_TYPE_ALARM = 'ALARM'
__init__(**kwargs)

Initializes a new AlarmSuppressionAlarmTarget object with values from keyword arguments. The default value of the target_type attribute of this class is ALARM and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • target_type (str) – The value to assign to the target_type property of this AlarmSuppressionAlarmTarget. Allowed values for this property are: “ALARM”
  • alarm_id (str) – The value to assign to the alarm_id property of this AlarmSuppressionAlarmTarget.
alarm_id

[Required] Gets the alarm_id of this AlarmSuppressionAlarmTarget. The OCID of the alarm that is the target of the alarm suppression.

Returns:The alarm_id of this AlarmSuppressionAlarmTarget.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

target_type

[Required] Gets the target_type of this AlarmSuppressionTarget. The type of the alarm suppression target.

Allowed values for this property are: “ALARM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The target_type of this AlarmSuppressionTarget.
Return type:str