Class AlarmCondition
The information about template condition in the same monitoringTemplate in a compartment.
Inherited Members
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class AlarmCondition
Properties
CompositeType
Declaration
[JsonProperty(PropertyName = "compositeType")]
public string CompositeType { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the composite resource type like EBS/PEOPLE_SOFT. |
ConditionType
Declaration
[Required(ErrorMessage = "ConditionType is required.")]
[JsonProperty(PropertyName = "conditionType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ConditionType? ConditionType { get; set; }
Property Value
Type | Description |
---|---|
ConditionType? | Type of defined monitoring template. |
Remarks
Required
Conditions
Declaration
[Required(ErrorMessage = "Conditions is required.")]
[JsonProperty(PropertyName = "conditions")]
public List<Condition> Conditions { get; set; }
Property Value
Type | Description |
---|---|
List<Condition> | Monitoring template conditions |
Remarks
Required
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"} |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the Alarm Condition. |
Remarks
Required
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlarmConditionLifeCycleStates? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
AlarmConditionLifeCycleStates? | The current lifecycle state of the monitoring template |
Remarks
Required
MetricName
Declaration
[Required(ErrorMessage = "MetricName is required.")]
[JsonProperty(PropertyName = "metricName")]
public string MetricName { get; set; }
Property Value
Type | Description |
---|---|
string | The metric name. |
Remarks
Required
MonitoringTemplateId
Declaration
[Required(ErrorMessage = "MonitoringTemplateId is required.")]
[JsonProperty(PropertyName = "monitoringTemplateId")]
public string MonitoringTemplateId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the monitoring template. |
Remarks
Required
Namespace
Declaration
[Required(ErrorMessage = "Namespace is required.")]
[JsonProperty(PropertyName = "namespace")]
public string Namespace { get; set; }
Property Value
Type | Description |
---|---|
string | The stack monitoring service or application emitting the metric that is evaluated by the alarm. |
Remarks
Required
ResourceType
Declaration
[Required(ErrorMessage = "ResourceType is required.")]
[JsonProperty(PropertyName = "resourceType")]
public string ResourceType { get; set; }
Property Value
Type | Description |
---|---|
string | The resource type OCID. |
Remarks
Required
Status
Declaration
[Required(ErrorMessage = "Status is required.")]
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlarmConditionLifeCycleDetails? Status { get; set; }
Property Value
Type | Description |
---|---|
AlarmConditionLifeCycleDetails? | The current status of the monitoring template i.e. whether it is Published or Unpublished |
Remarks
Required
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the alarm condition was created. Format defined by RFC3339. |
TimeUpdated
Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the alarm condition was updated. Format defined by RFC3339. |