Class ActivityLogAlertResource
An activity log alert resource.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class ActivityLogAlertResource : Microsoft.Azure.Management.Monitor.Models.Resource
Constructors
ActivityLogAlertResource()
Initializes a new instance of the ActivityLogAlertResource class.
Declaration
public ActivityLogAlertResource ();
ActivityLogAlertResource(String, IList<String>, ActivityLogAlertAllOfCondition, ActivityLogAlertActionList, String, String, String, IDictionary<String,String>, Nullable<Boolean>, String)
Initializes a new instance of the ActivityLogAlertResource class.
Declaration
public ActivityLogAlertResource (string location, System.Collections.Generic.IList<string> scopes, Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertAllOfCondition condition, Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertActionList actions, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, Nullable<bool> enabled = null, string description = null);
Parameters
|
String
location
Resource location |
|
IList<String>
scopes
A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item. |
|
ActivityLogAlertAllOfCondition
condition
The condition that will cause this alert to activate. |
|
ActivityLogAlertActionList
actions
The actions that will activate when the condition is met. |
|
String
id
Azure resource Id |
|
String
name
Azure resource name |
|
String
type
Azure resource type |
|
IDictionary<String,String>
tags
Resource tags |
|
Nullable<Boolean>
enabled
Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. |
|
String
description
A description of this activity log alert. |
Properties
Actions
Gets or sets the actions that will activate when the condition is met.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.actions")]
public Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertActionList Actions { get; set; }
Property Value
|
ActivityLogAlertActionList
|
Condition
Gets or sets the condition that will cause this alert to activate.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.condition")]
public Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertAllOfCondition Condition { get; set; }
Property Value
|
ActivityLogAlertAllOfCondition
|
Description
Gets or sets a description of this activity log alert.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.description")]
public string Description { get; set; }
Property Value
|
String
|
Enabled
Gets or sets indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.enabled")]
public Nullable<bool> Enabled { get; set; }
Property Value
|
Nullable<Boolean>
|
Scopes
Gets or sets a list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.scopes")]
public System.Collections.Generic.IList<string> Scopes { get; set; }
Property Value
|
IList<String>
|
Methods
Validate()
Validate the object.
Declaration
public override void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |