Class CreateAlertPolicyDetails
The details used to create a new alert policy.
Inherited Members
Namespace: Oci.DatasafeService.Models
Assembly: OCI.DotNetSDK.Datasafe.dll
Syntax
public class CreateAlertPolicyDetails
Properties
AlertPolicyRuleDetails
Declaration
[JsonProperty(PropertyName = "alertPolicyRuleDetails")]
public List<CreateAlertPolicyRuleDetails> AlertPolicyRuleDetails { get; set; }
Property Value
Type | Description |
---|---|
List<CreateAlertPolicyRuleDetails> | The details of the alert policy rule. |
AlertPolicyType
Declaration
[Required(ErrorMessage = "AlertPolicyType is required.")]
[JsonProperty(PropertyName = "alertPolicyType")]
[JsonConverter(typeof(StringEnumConverter))]
public AlertPolicyType? AlertPolicyType { get; set; }
Property Value
Type | Description |
---|---|
AlertPolicyType? | Indicates the Data Safe feature the alert policy belongs to |
Remarks
Required
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment where you want to create the alert policy. |
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. For more information, see Resource Tags
|
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | The description of the alert policy. |
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | The display name of the alert policy. The name does not have to be unique, and it's changeable. |
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags
|
Severity
Declaration
[Required(ErrorMessage = "Severity is required.")]
[JsonProperty(PropertyName = "severity")]
[JsonConverter(typeof(StringEnumConverter))]
public AlertSeverity? Severity { get; set; }
Property Value
Type | Description |
---|---|
AlertSeverity? | Severity level of the alert raised by this policy. |
Remarks
Required