Class ActivityLogAlert
Manages an Activity Log Alert within Azure Monitor.
Inherited Members
Namespace: Pulumi.Azure.Monitoring
Assembly: Pulumi.Azure.dll
Syntax
public class ActivityLogAlert : CustomResource
Constructors
View SourceActivityLogAlert(String, ActivityLogAlertArgs, CustomResourceOptions)
Create a ActivityLogAlert resource with the given unique name, arguments, and options.
Declaration
public ActivityLogAlert(string name, ActivityLogAlertArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ActivityLogAlertArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActions
One or more action blocks as defined below.
Declaration
public Output<ImmutableArray<ActivityLogAlertAction>> Actions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ActivityLogAlertAction>> |
Criteria
A criteria block as defined below.
Declaration
public Output<ActivityLogAlertCriteria> Criteria { get; }
Property Value
| Type | Description |
|---|---|
| Output<ActivityLogAlertCriteria> |
Description
The description of this activity log alert.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Enabled
Should this Activity Log Alert be enabled? Defaults to true.
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The name of the activity log alert. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the activity log alert instance.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Scopes
The Scope at which the Activity Log should be applied, for example a the Resource ID of a Subscription or a Resource (such as a Storage Account).
Declaration
public Output<ImmutableArray<string>> Scopes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Methods
View SourceGet(String, Input<String>, ActivityLogAlertState, CustomResourceOptions)
Get an existing ActivityLogAlert resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ActivityLogAlert Get(string name, Input<string> id, ActivityLogAlertState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ActivityLogAlertState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ActivityLogAlert |