AlarmDimensionStatesEntry¶
-
class
oci.monitoring.models.
AlarmDimensionStatesEntry
(**kwargs)¶ Bases:
object
A timestamped alarm state entry for a metric stream.
Attributes
STATUS_FIRING
A constant which can be used with the status property of a AlarmDimensionStatesEntry. STATUS_OK
A constant which can be used with the status property of a AlarmDimensionStatesEntry. dimensions
[Required] Gets the dimensions of this AlarmDimensionStatesEntry. rule_name
[Required] Gets the rule_name of this AlarmDimensionStatesEntry. status
[Required] Gets the status of this AlarmDimensionStatesEntry. timestamp
[Required] Gets the timestamp of this AlarmDimensionStatesEntry. Methods
__init__
(**kwargs)Initializes a new AlarmDimensionStatesEntry object with values from keyword arguments. -
STATUS_FIRING
= 'FIRING'¶ A constant which can be used with the status property of a AlarmDimensionStatesEntry. This constant has a value of “FIRING”
-
STATUS_OK
= 'OK'¶ A constant which can be used with the status property of a AlarmDimensionStatesEntry. This constant has a value of “OK”
-
__init__
(**kwargs)¶ Initializes a new AlarmDimensionStatesEntry object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - dimensions (dict(str, str)) – The value to assign to the dimensions property of this AlarmDimensionStatesEntry.
- status (str) – The value to assign to the status property of this AlarmDimensionStatesEntry. Allowed values for this property are: “FIRING”, “OK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- rule_name (str) – The value to assign to the rule_name property of this AlarmDimensionStatesEntry.
- timestamp (datetime) – The value to assign to the timestamp property of this AlarmDimensionStatesEntry.
-
dimensions
¶ [Required] Gets the dimensions of this AlarmDimensionStatesEntry. Indicator of the metric stream associated with the alarm state entry. Includes one or more dimension key-value pairs.
Returns: The dimensions of this AlarmDimensionStatesEntry. Return type: dict(str, str)
-
rule_name
¶ [Required] Gets the rule_name of this AlarmDimensionStatesEntry. Identifier of the alarm’s base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is BASE. For information about alarm overrides, see
alarm_override()
.Returns: The rule_name of this AlarmDimensionStatesEntry. Return type: str
-
status
¶ [Required] Gets the status of this AlarmDimensionStatesEntry. Transition state (status value) associated with the alarm state entry.
Example: FIRING
Allowed values for this property are: “FIRING”, “OK”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The status of this AlarmDimensionStatesEntry. Return type: str
-
timestamp
¶ [Required] Gets the timestamp of this AlarmDimensionStatesEntry. Transition time associated with the alarm state entry. Format defined by RFC3339.
Example: 2022-02-01T01:02:29.600Z
Returns: The timestamp of this AlarmDimensionStatesEntry. Return type: datetime
-