ActivityLogAlert
Manages an Activity Log Alert within Azure Monitor.
Create a ActivityLogAlert Resource
new ActivityLogAlert(name: string, args: ActivityLogAlertArgs, opts?: CustomResourceOptions);def ActivityLogAlert(resource_name, opts=None, actions=None, criteria=None, description=None, enabled=None, name=None, resource_group_name=None, scopes=None, tags=None, __props__=None);func NewActivityLogAlert(ctx *Context, name string, args ActivityLogAlertArgs, opts ...ResourceOption) (*ActivityLogAlert, error)public ActivityLogAlert(string name, ActivityLogAlertArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ActivityLogAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ActivityLogAlert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ActivityLogAlert resource accepts the following input properties:
- Criteria
Activity
Log Alert Criteria Args A
criteriablock as defined below.- Resource
Group stringName The name of the resource group in which to create the activity log alert instance.
- Scopes List<string>
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).
- Actions
List<Activity
Log Alert Action Args> One or more
actionblocks as defined below.- Description string
The description of this activity log alert.
- Enabled bool
Should this Activity Log Alert be enabled? Defaults to
true.- Name string
The name of the activity log alert. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Criteria
Activity
Log Alert Criteria A
criteriablock as defined below.- Resource
Group stringName The name of the resource group in which to create the activity log alert instance.
- Scopes []string
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).
- Actions
[]Activity
Log Alert Action One or more
actionblocks as defined below.- Description string
The description of this activity log alert.
- Enabled bool
Should this Activity Log Alert be enabled? Defaults to
true.- Name string
The name of the activity log alert. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- criteria
Activity
Log Alert Criteria A
criteriablock as defined below.- resource
Group stringName The name of the resource group in which to create the activity log alert instance.
- scopes string[]
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).
- actions
Activity
Log Alert Action[] One or more
actionblocks as defined below.- description string
The description of this activity log alert.
- enabled boolean
Should this Activity Log Alert be enabled? Defaults to
true.- name string
The name of the activity log alert. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- criteria
Dict[Activity
Log Alert Criteria] A
criteriablock as defined below.- resource_
group_ strname The name of the resource group in which to create the activity log alert instance.
- scopes List[str]
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).
- actions
List[Activity
Log Alert Action] One or more
actionblocks as defined below.- description str
The description of this activity log alert.
- enabled bool
Should this Activity Log Alert be enabled? Defaults to
true.- name str
The name of the activity log alert. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ActivityLogAlert resource produces the following output properties:
Look up an Existing ActivityLogAlert Resource
Get an existing ActivityLogAlert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ActivityLogAlertState, opts?: CustomResourceOptions): ActivityLogAlertstatic get(resource_name, id, opts=None, actions=None, criteria=None, description=None, enabled=None, name=None, resource_group_name=None, scopes=None, tags=None, __props__=None);func GetActivityLogAlert(ctx *Context, name string, id IDInput, state *ActivityLogAlertState, opts ...ResourceOption) (*ActivityLogAlert, error)public static ActivityLogAlert Get(string name, Input<string> id, ActivityLogAlertState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Actions
List<Activity
Log Alert Action Args> One or more
actionblocks as defined below.- Criteria
Activity
Log Alert Criteria Args A
criteriablock as defined below.- Description string
The description of this activity log alert.
- Enabled bool
Should this Activity Log Alert be enabled? Defaults to
true.- Name string
The name of the activity log alert. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the activity log alert instance.
- Scopes List<string>
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).
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Actions
[]Activity
Log Alert Action One or more
actionblocks as defined below.- Criteria
Activity
Log Alert Criteria A
criteriablock as defined below.- Description string
The description of this activity log alert.
- Enabled bool
Should this Activity Log Alert be enabled? Defaults to
true.- Name string
The name of the activity log alert. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the activity log alert instance.
- Scopes []string
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).
- map[string]string
A mapping of tags to assign to the resource.
- actions
Activity
Log Alert Action[] One or more
actionblocks as defined below.- criteria
Activity
Log Alert Criteria A
criteriablock as defined below.- description string
The description of this activity log alert.
- enabled boolean
Should this Activity Log Alert be enabled? Defaults to
true.- name string
The name of the activity log alert. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the activity log alert instance.
- scopes string[]
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).
- {[key: string]: string}
A mapping of tags to assign to the resource.
- actions
List[Activity
Log Alert Action] One or more
actionblocks as defined below.- criteria
Dict[Activity
Log Alert Criteria] A
criteriablock as defined below.- description str
The description of this activity log alert.
- enabled bool
Should this Activity Log Alert be enabled? Defaults to
true.- name str
The name of the activity log alert. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the activity log alert instance.
- scopes List[str]
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).
- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
ActivityLogAlertAction
- Action
Group stringId The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroupresource.- Webhook
Properties Dictionary<string, string> The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- Action
Group stringId The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroupresource.- Webhook
Properties map[string]string The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- action
Group stringId The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroupresource.- webhook
Properties {[key: string]: string} The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
- action_
group_ strid The ID of the Action Group can be sourced from the
azure.monitoring.ActionGroupresource.- webhook
Properties Dict[str, str] The map of custom string properties to include with the post operation. These data are appended to the webhook payload.
ActivityLogAlertCriteria
- Category string
The category of the operation. Possible values are
Administrative,Autoscale,Policy,Recommendation,ResourceHealth,SecurityandServiceHealth.- Caller string
The email address or Azure Active Directory identifier of the user who performed the operation.
- Level string
The severity level of the event. Possible values are
Verbose,Informational,Warning,Error, andCritical.- Operation
Name string The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>.- Recommendation
Category string The recommendation category of the event. Possible values are
Cost,Reliability,OperationalExcellenceandPerformance. It is only allowed whencategoryisRecommendation.- Recommendation
Impact string The recommendation impact of the event. Possible values are
High,MediumandLow. It is only allowed whencategoryisRecommendation.- Recommendation
Type string The recommendation type of the event. It is only allowed when
categoryisRecommendation.- Resource
Group string The name of resource group monitored by the activity log alert.
- Resource
Id string The specific resource monitored by the activity log alert. It should be within one of the
scopes.- Resource
Provider string The name of the resource provider monitored by the activity log alert.
- Resource
Type string The resource type monitored by the activity log alert.
- Status string
The status of the event. For example,
Started,Failed, orSucceeded.- Sub
Status string The sub status of the event.
- Category string
The category of the operation. Possible values are
Administrative,Autoscale,Policy,Recommendation,ResourceHealth,SecurityandServiceHealth.- Caller string
The email address or Azure Active Directory identifier of the user who performed the operation.
- Level string
The severity level of the event. Possible values are
Verbose,Informational,Warning,Error, andCritical.- Operation
Name string The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>.- Recommendation
Category string The recommendation category of the event. Possible values are
Cost,Reliability,OperationalExcellenceandPerformance. It is only allowed whencategoryisRecommendation.- Recommendation
Impact string The recommendation impact of the event. Possible values are
High,MediumandLow. It is only allowed whencategoryisRecommendation.- Recommendation
Type string The recommendation type of the event. It is only allowed when
categoryisRecommendation.- Resource
Group string The name of resource group monitored by the activity log alert.
- Resource
Id string The specific resource monitored by the activity log alert. It should be within one of the
scopes.- Resource
Provider string The name of the resource provider monitored by the activity log alert.
- Resource
Type string The resource type monitored by the activity log alert.
- Status string
The status of the event. For example,
Started,Failed, orSucceeded.- Sub
Status string The sub status of the event.
- category string
The category of the operation. Possible values are
Administrative,Autoscale,Policy,Recommendation,ResourceHealth,SecurityandServiceHealth.- caller string
The email address or Azure Active Directory identifier of the user who performed the operation.
- level string
The severity level of the event. Possible values are
Verbose,Informational,Warning,Error, andCritical.- operation
Name string The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>.- recommendation
Category string The recommendation category of the event. Possible values are
Cost,Reliability,OperationalExcellenceandPerformance. It is only allowed whencategoryisRecommendation.- recommendation
Impact string The recommendation impact of the event. Possible values are
High,MediumandLow. It is only allowed whencategoryisRecommendation.- recommendation
Type string The recommendation type of the event. It is only allowed when
categoryisRecommendation.- resource
Group string The name of resource group monitored by the activity log alert.
- resource
Id string The specific resource monitored by the activity log alert. It should be within one of the
scopes.- resource
Provider string The name of the resource provider monitored by the activity log alert.
- resource
Type string The resource type monitored by the activity log alert.
- status string
The status of the event. For example,
Started,Failed, orSucceeded.- sub
Status string The sub status of the event.
- category str
The category of the operation. Possible values are
Administrative,Autoscale,Policy,Recommendation,ResourceHealth,SecurityandServiceHealth.- caller str
The email address or Azure Active Directory identifier of the user who performed the operation.
- level str
The severity level of the event. Possible values are
Verbose,Informational,Warning,Error, andCritical.- operation
Name str The Resource Manager Role-Based Access Control operation name. Supported operation should be of the form:
<resourceProvider>/<resourceType>/<operation>.- recommendation
Category str The recommendation category of the event. Possible values are
Cost,Reliability,OperationalExcellenceandPerformance. It is only allowed whencategoryisRecommendation.- recommendation
Impact str The recommendation impact of the event. Possible values are
High,MediumandLow. It is only allowed whencategoryisRecommendation.- recommendation
Type str The recommendation type of the event. It is only allowed when
categoryisRecommendation.- resource
Group str The name of resource group monitored by the activity log alert.
- resource
Provider str The name of the resource provider monitored by the activity log alert.
- resource
Type str The resource type monitored by the activity log alert.
- resource_
id str The specific resource monitored by the activity log alert. It should be within one of the
scopes.- status str
The status of the event. For example,
Started,Failed, orSucceeded.- sub
Status str The sub status of the event.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.