This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
azure-native.insights.getActivityLogAlert
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi
Get an Activity Log Alert rule. Azure REST API version: 2020-10-01.
Other available API versions: 2017-04-01, 2023-01-01-preview.
Using getActivityLogAlert
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getActivityLogAlert(args: GetActivityLogAlertArgs, opts?: InvokeOptions): Promise<GetActivityLogAlertResult>
function getActivityLogAlertOutput(args: GetActivityLogAlertOutputArgs, opts?: InvokeOptions): Output<GetActivityLogAlertResult>
def get_activity_log_alert(activity_log_alert_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetActivityLogAlertResult
def get_activity_log_alert_output(activity_log_alert_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetActivityLogAlertResult]
func LookupActivityLogAlert(ctx *Context, args *LookupActivityLogAlertArgs, opts ...InvokeOption) (*LookupActivityLogAlertResult, error)
func LookupActivityLogAlertOutput(ctx *Context, args *LookupActivityLogAlertOutputArgs, opts ...InvokeOption) LookupActivityLogAlertResultOutput
> Note: This function is named LookupActivityLogAlert
in the Go SDK.
public static class GetActivityLogAlert
{
public static Task<GetActivityLogAlertResult> InvokeAsync(GetActivityLogAlertArgs args, InvokeOptions? opts = null)
public static Output<GetActivityLogAlertResult> Invoke(GetActivityLogAlertInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetActivityLogAlertResult> getActivityLogAlert(GetActivityLogAlertArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:insights:getActivityLogAlert
arguments:
# arguments dictionary
The following arguments are supported:
- Activity
Log stringAlert Name - The name of the Activity Log Alert rule.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Activity
Log stringAlert Name - The name of the Activity Log Alert rule.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- activity
Log StringAlert Name - The name of the Activity Log Alert rule.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- activity
Log stringAlert Name - The name of the Activity Log Alert rule.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- activity_
log_ stralert_ name - The name of the Activity Log Alert rule.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- activity
Log StringAlert Name - The name of the Activity Log Alert rule.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
getActivityLogAlert Result
The following output properties are available:
- Actions
Pulumi.
Azure Native. Insights. Outputs. Action List Response - The actions that will activate when the condition is met.
- Condition
Pulumi.
Azure Native. Insights. Outputs. Alert Rule All Of Condition Response - The condition that will cause this alert to activate.
- Id string
- The resource Id.
- Name string
- The name of the resource.
- Scopes List<string>
- A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
- Type string
- The type of the resource.
- Description string
- A description of this Activity Log Alert rule.
- Enabled bool
- Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
- Location string
- The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
- Dictionary<string, string>
- The tags of the resource.
- Actions
Action
List Response - The actions that will activate when the condition is met.
- Condition
Alert
Rule All Of Condition Response - The condition that will cause this alert to activate.
- Id string
- The resource Id.
- Name string
- The name of the resource.
- Scopes []string
- A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
- Type string
- The type of the resource.
- Description string
- A description of this Activity Log Alert rule.
- Enabled bool
- Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
- Location string
- The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
- map[string]string
- The tags of the resource.
- actions
Action
List Response - The actions that will activate when the condition is met.
- condition
Alert
Rule All Of Condition Response - The condition that will cause this alert to activate.
- id String
- The resource Id.
- name String
- The name of the resource.
- scopes List<String>
- A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
- type String
- The type of the resource.
- description String
- A description of this Activity Log Alert rule.
- enabled Boolean
- Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
- location String
- The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
- Map<String,String>
- The tags of the resource.
- actions
Action
List Response - The actions that will activate when the condition is met.
- condition
Alert
Rule All Of Condition Response - The condition that will cause this alert to activate.
- id string
- The resource Id.
- name string
- The name of the resource.
- scopes string[]
- A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
- type string
- The type of the resource.
- description string
- A description of this Activity Log Alert rule.
- enabled boolean
- Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
- location string
- The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
- {[key: string]: string}
- The tags of the resource.
- actions
Action
List Response - The actions that will activate when the condition is met.
- condition
Alert
Rule All Of Condition Response - The condition that will cause this alert to activate.
- id str
- The resource Id.
- name str
- The name of the resource.
- scopes Sequence[str]
- A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
- type str
- The type of the resource.
- description str
- A description of this Activity Log Alert rule.
- enabled bool
- Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
- location str
- The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
- Mapping[str, str]
- The tags of the resource.
- actions Property Map
- The actions that will activate when the condition is met.
- condition Property Map
- The condition that will cause this alert to activate.
- id String
- The resource Id.
- name String
- The name of the resource.
- scopes List<String>
- A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
- type String
- The type of the resource.
- description String
- A description of this Activity Log Alert rule.
- enabled Boolean
- Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
- location String
- The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
- Map<String>
- The tags of the resource.
Supporting Types
ActionGroupResponse
- Action
Group stringId - The resource ID of the Action Group. This cannot be null or empty.
- Webhook
Properties Dictionary<string, string> - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- Action
Group stringId - The resource ID of the Action Group. This cannot be null or empty.
- Webhook
Properties map[string]string - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- action
Group StringId - The resource ID of the Action Group. This cannot be null or empty.
- webhook
Properties Map<String,String> - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- action
Group stringId - The resource ID of the Action Group. This cannot be null or empty.
- webhook
Properties {[key: string]: string} - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- action_
group_ strid - The resource ID of the Action Group. This cannot be null or empty.
- webhook_
properties Mapping[str, str] - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
- action
Group StringId - The resource ID of the Action Group. This cannot be null or empty.
- webhook
Properties Map<String> - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
ActionListResponse
- Action
Groups List<Pulumi.Azure Native. Insights. Inputs. Action Group Response> - The list of the Action Groups.
- Action
Groups []ActionGroup Response - The list of the Action Groups.
- action
Groups List<ActionGroup Response> - The list of the Action Groups.
- action
Groups ActionGroup Response[] - The list of the Action Groups.
- action_
groups Sequence[ActionGroup Response] - The list of the Action Groups.
- action
Groups List<Property Map> - The list of the Action Groups.
AlertRuleAllOfConditionResponse
- All
Of List<Pulumi.Azure Native. Insights. Inputs. Alert Rule Any Of Or Leaf Condition Response> - The list of Activity Log Alert rule conditions.
- All
Of []AlertRule Any Of Or Leaf Condition Response - The list of Activity Log Alert rule conditions.
- all
Of List<AlertRule Any Of Or Leaf Condition Response> - The list of Activity Log Alert rule conditions.
- all
Of AlertRule Any Of Or Leaf Condition Response[] - The list of Activity Log Alert rule conditions.
- all_
of Sequence[AlertRule Any Of Or Leaf Condition Response] - The list of Activity Log Alert rule conditions.
- all
Of List<Property Map> - The list of Activity Log Alert rule conditions.
AlertRuleAnyOfOrLeafConditionResponse
- Any
Of List<Pulumi.Azure Native. Insights. Inputs. Alert Rule Leaf Condition Response> - An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
- Contains
Any List<string> - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- Equals string
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- Field string
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- Any
Of []AlertRule Leaf Condition Response - An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
- Contains
Any []string - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- Equals string
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- Field string
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- any
Of List<AlertRule Leaf Condition Response> - An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
- contains
Any List<String> - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals_ String
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field String
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- any
Of AlertRule Leaf Condition Response[] - An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
- contains
Any string[] - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals string
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field string
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- any_
of Sequence[AlertRule Leaf Condition Response] - An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
- contains_
any Sequence[str] - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals str
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field str
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- any
Of List<Property Map> - An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.
- contains
Any List<String> - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals String
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field String
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
AlertRuleLeafConditionResponse
- Contains
Any List<string> - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- Equals string
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- Field string
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- Contains
Any []string - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- Equals string
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- Field string
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- contains
Any List<String> - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals_ String
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field String
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- contains
Any string[] - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals string
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field string
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- contains_
any Sequence[str] - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals str
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field str
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
- contains
Any List<String> - The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.
- equals String
- The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- field String
- The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi