Show / Hide Table of Contents

Class AlertPolicyRule

A rule associated with a alert policy.

Inheritance
object
AlertPolicyRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DatasafeService.Models
Assembly: OCI.DotNetSDK.Datasafe.dll
Syntax
public class AlertPolicyRule

Properties

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

Describes the alert policy rule.

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

The display name of the alert policy rule.

Expression

Declaration
[Required(ErrorMessage = "Expression is required.")]
[JsonProperty(PropertyName = "expression")]
public string Expression { get; set; }
Property Value
Type Description
string

The conditional expression of the alert policy rule which evaluates to boolean value.

Remarks

Required

Key

Declaration
[Required(ErrorMessage = "Key is required.")]
[JsonProperty(PropertyName = "key")]
public string Key { get; set; }
Property Value
Type Description
string

The unique key of the alert policy rule.

Remarks

Required

LifecycleState

Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlertPolicyRuleLifecycleState? LifecycleState { get; set; }
Property Value
Type Description
AlertPolicyRuleLifecycleState?

The current state of the alert policy rule.

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

Creation date and time of the alert policy rule, in the format defined by RFC3339.

In this article
Back to top