CreateAlarmConditionDetails¶
- class oci.stack_monitoring.models.CreateAlarmConditionDetails(**kwargs)¶
Bases:
objectThe information about new alarm condition in the same monitoringTemplate in a compartment.
Attributes:
A constant which can be used with the condition_type property of a CreateAlarmConditionDetails.
A constant which can be used with the condition_type property of a CreateAlarmConditionDetails.
Gets the composite_type of this CreateAlarmConditionDetails.
[Required] Gets the condition_type of this CreateAlarmConditionDetails.
[Required] Gets the conditions of this CreateAlarmConditionDetails.
Gets the defined_tags of this CreateAlarmConditionDetails.
Gets the freeform_tags of this CreateAlarmConditionDetails.
[Required] Gets the metric_name of this CreateAlarmConditionDetails.
[Required] Gets the namespace of this CreateAlarmConditionDetails.
[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.
- property 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
- property 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
- property conditions¶
[Required] Gets the conditions of this CreateAlarmConditionDetails. Monitoring template conditions.
- Returns
The conditions of this CreateAlarmConditionDetails.
- Return type
- property defined_tags¶
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))
- property freeform_tags¶
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)
- property metric_name¶
[Required] Gets the metric_name of this CreateAlarmConditionDetails. The metric name.
- Returns
The metric_name of this CreateAlarmConditionDetails.
- Return type
str
- property 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
- property resource_type¶
[Required] Gets the resource_type of this CreateAlarmConditionDetails. The resource group OCID.
- Returns
The resource_type of this CreateAlarmConditionDetails.
- Return type
str