Class Condition
The Monitoring Template Alarm Condition.
Inherited Members
Namespace: Oci.StackmonitoringService.Models
Assembly: OCI.DotNetSDK.Stackmonitoring.dll
Syntax
public class Condition
Properties
Body
Declaration
[JsonProperty(PropertyName = "body")]
public string Body { get; set; }
Property Value
Type | Description |
---|---|
string | The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. |
Query
Declaration
[Required(ErrorMessage = "Query is required.")]
[JsonProperty(PropertyName = "query")]
public string Query { get; set; }
Property Value
Type | Description |
---|---|
string | The Monitoring Query Language (MQL) expression to evaluate for the alarm. |
Remarks
Required
Severity
Declaration
[Required(ErrorMessage = "Severity is required.")]
[JsonProperty(PropertyName = "severity")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlarmConditionSeverity? Severity { get; set; }
Property Value
Type | Description |
---|---|
AlarmConditionSeverity? | Severity - Critical/Warning |
Remarks
Required
ShouldAppendNote
Declaration
[JsonProperty(PropertyName = "shouldAppendNote")]
public bool? ShouldAppendNote { get; set; }
Property Value
Type | Description |
---|---|
bool? | Whether the note need to add into bottom of the body for mapping the alarms information with template or not. |
ShouldAppendUrl
Declaration
[JsonProperty(PropertyName = "shouldAppendUrl")]
public bool? ShouldAppendUrl { get; set; }
Property Value
Type | Description |
---|---|
bool? | Whether the URL need to add into bottom of the body for mapping the alarms information with template or not. |
TriggerDelay
Declaration
[JsonProperty(PropertyName = "triggerDelay")]
public string TriggerDelay { get; set; }
Property Value
Type | Description |
---|---|
string | The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". |