Class Alert
The details of a Data Safe Alert, that shows alerts generated by a Data Safe feature.
Inherited Members
Namespace: Oci.DatasafeService.Models
Assembly: OCI.DotNetSDK.Datasafe.dll
Syntax
public class Alert
Properties
AlertPolicyRuleKey
Declaration
[JsonProperty(PropertyName = "alertPolicyRuleKey")]
public string AlertPolicyRuleKey { get; set; }
Property Value
Type | Description |
---|---|
string | The key of the rule of alert policy that triggered alert. |
AlertPolicyRuleName
Declaration
[JsonProperty(PropertyName = "alertPolicyRuleName")]
public string AlertPolicyRuleName { get; set; }
Property Value
Type | Description |
---|---|
string | The display name of the rule of alert policy that triggered alert. |
AlertType
Declaration
[JsonProperty(PropertyName = "alertType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlertType? AlertType { get; set; }
Property Value
Type | Description |
---|---|
AlertType? | Type of the alert. Indicates the Data Safe feature triggering the alert. |
Comment
Declaration
[JsonProperty(PropertyName = "comment")]
public string Comment { get; set; }
Property Value
Type | Description |
---|---|
string | A comment for the alert. Entered by the user. |
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 that contains the alert. |
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. |
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | The display name of the alert. |
Remarks
Required
FeatureDetails
Declaration
[JsonProperty(PropertyName = "featureDetails")]
public Dictionary<string, Dictionary<string, object>> FeatureDetails { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Map that contains maps of values. Example: {"Operations": {"CostCenter": "42"}} |
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
|
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the alert. |
Remarks
Required
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlertLifecycleState? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
AlertLifecycleState? | The current state of the alert. |
Remarks
Required
Operation
Declaration
[JsonProperty(PropertyName = "operation")]
public string Operation { get; set; }
Property Value
Type | Description |
---|---|
string | The operation (event) that triggered alert. |
OperationStatus
Declaration
[JsonProperty(PropertyName = "operationStatus")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Alert.OperationStatusEnum? OperationStatus { get; set; }
Property Value
Type | Description |
---|---|
Alert.OperationStatusEnum? | The result of the operation (event) that triggered alert. |
OperationTime
Declaration
[JsonProperty(PropertyName = "operationTime")]
public DateTime? OperationTime { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Creation date and time of the operation that triggered alert, in the format defined by RFC3339. |
PolicyId
Declaration
[JsonProperty(PropertyName = "policyId")]
public string PolicyId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the policy that triggered alert. |
ResourceName
Declaration
[JsonProperty(PropertyName = "resourceName")]
public string ResourceName { get; set; }
Property Value
Type | Description |
---|---|
string | The resource endpoint that triggered the alert. |
Severity
Declaration
[JsonProperty(PropertyName = "severity")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlertSeverity? Severity { get; set; }
Property Value
Type | Description |
---|---|
AlertSeverity? | Severity level of the alert. |
Status
Declaration
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public AlertStatus? Status { get; set; }
Property Value
Type | Description |
---|---|
AlertStatus? | The status of the alert. |
SystemTags
Declaration
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
TargetIds
Declaration
[JsonProperty(PropertyName = "targetIds")]
public List<string> TargetIds { get; set; }
Property Value
Type | Description |
---|---|
List<string> | Array of OCIDs of the target database which are associated with the alert. |
TargetNames
Declaration
[JsonProperty(PropertyName = "targetNames")]
public List<string> TargetNames { get; set; }
Property Value
Type | Description |
---|---|
List<string> | Array of names of the target database. |
TimeCreated
Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Creation date and time of the alert, in the format defined by RFC3339. |
Remarks
Required
TimeUpdated
Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | Last date and time the alert was updated, in the format defined by RFC3339. |
Remarks
Required