CreateAlarmConditionDetails¶
-
class
oci.stack_monitoring.models.CreateAlarmConditionDetails(**kwargs)¶ Bases:
objectThe information about new alarm condition in the same monitoringTemplate in a compartment.
Attributes
CONDITION_TYPE_AVAILABILITYA constant which can be used with the condition_type property of a CreateAlarmConditionDetails. CONDITION_TYPE_FIXEDA constant which can be used with the condition_type property of a CreateAlarmConditionDetails. composite_typeGets the composite_type of this CreateAlarmConditionDetails. condition_type[Required] Gets the condition_type of this CreateAlarmConditionDetails. conditions[Required] Gets the conditions of this CreateAlarmConditionDetails. defined_tagsGets the defined_tags of this CreateAlarmConditionDetails. freeform_tagsGets the freeform_tags of this CreateAlarmConditionDetails. metric_name[Required] Gets the metric_name of this CreateAlarmConditionDetails. namespace[Required] Gets the namespace of this CreateAlarmConditionDetails. resource_type[Required] Gets the resource_type of this CreateAlarmConditionDetails. Methods
__init__(**kwargs)Initializes a new CreateAlarmConditionDetails object with values from keyword arguments. -
CONDITION_TYPE_AVAILABILITY= 'AVAILABILITY'¶ A constant which can be used with the condition_type property of a CreateAlarmConditionDetails. This constant has a value of “AVAILABILITY”
-
CONDITION_TYPE_FIXED= 'FIXED'¶ A constant which can be used with the condition_type property of a CreateAlarmConditionDetails. This constant has a value of “FIXED”
-
__init__(**kwargs)¶ Initializes a new CreateAlarmConditionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - namespace (str) – The value to assign to the namespace property of this CreateAlarmConditionDetails.
- composite_type (str) – The value to assign to the composite_type property of this CreateAlarmConditionDetails.
- resource_type (str) – The value to assign to the resource_type property of this CreateAlarmConditionDetails.
- metric_name (str) – The value to assign to the metric_name property of this CreateAlarmConditionDetails.
- condition_type (str) – The value to assign to the condition_type property of this CreateAlarmConditionDetails. Allowed values for this property are: “FIXED”, “AVAILABILITY”
- conditions (list[oci.stack_monitoring.models.Condition]) – The value to assign to the conditions property of this CreateAlarmConditionDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateAlarmConditionDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateAlarmConditionDetails.
-
composite_type¶ Gets the composite_type of this CreateAlarmConditionDetails. The OCID of the composite resource type like EBS/PEOPLE_SOFT.
Returns: The composite_type of this CreateAlarmConditionDetails. Return type: str
-
condition_type¶ [Required] Gets the condition_type of this CreateAlarmConditionDetails. Type of defined monitoring template.
Allowed values for this property are: “FIXED”, “AVAILABILITY”
Returns: The condition_type of this CreateAlarmConditionDetails. Return type: str
-
conditions¶ [Required] Gets the conditions of this CreateAlarmConditionDetails. Monitoring template conditions.
Returns: The conditions of this CreateAlarmConditionDetails. Return type: list[oci.stack_monitoring.models.Condition]
Gets the defined_tags of this CreateAlarmConditionDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
Returns: The defined_tags of this CreateAlarmConditionDetails. Return type: dict(str, dict(str, object))
Gets the freeform_tags of this CreateAlarmConditionDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Returns: The freeform_tags of this CreateAlarmConditionDetails. Return type: dict(str, str)
-
metric_name¶ [Required] Gets the metric_name of this CreateAlarmConditionDetails. The metric name.
Returns: The metric_name of this CreateAlarmConditionDetails. Return type: str
-
namespace¶ [Required] Gets the namespace of this CreateAlarmConditionDetails. The stack monitoring service or application emitting the metric that is evaluated by the alarm.
Returns: The namespace of this CreateAlarmConditionDetails. Return type: str
-
resource_type¶ [Required] Gets the resource_type of this CreateAlarmConditionDetails. The resource group OCID.
Returns: The resource_type of this CreateAlarmConditionDetails. Return type: str
-