Class CreateAlarmConditionDetails
The information about new alarm condition in the same monitoringTemplate in a compartment.
Inherited Members
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class CreateAlarmConditionDetails
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(StringEnumConverter))]
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"} |
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
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 group OCID. |
Remarks
Required