ActivityLogAlertResourceInner Class
public class ActivityLogAlertResourceInner implements Resource
An activity log alert resource.
Method Summary
Modifier and Type | Method and Description |
---|---|
Activity |
actions()
Get the actions that will activate when the condition is met. |
Activity |
condition()
Get the condition that will cause this alert to activate. |
String |
description()
Get a description of this activity log alert. |
Boolean |
enabled()
Get indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. |
List<String> |
scopes()
Get 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. |
Activity |
withActions(ActivityLogAlertActionList actions)
Set the actions that will activate when the condition is met. |
Activity |
withCondition(ActivityLogAlertAllOfCondition condition)
Set the condition that will cause this alert to activate. |
Activity |
withDescription(String description)
Set a description of this activity log alert. |
Activity |
withEnabled(Boolean enabled)
Set indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. |
Activity |
withScopes(List<String> scopes)
Set 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. |
Inherited Members
Method Details
actions
public ActivityLogAlertActionList actions()
Get the actions that will activate when the condition is met.
Returns:
condition
public ActivityLogAlertAllOfCondition condition()
Get the condition that will cause this alert to activate.
Returns:
description
public String description()
Get a description of this activity log alert.
Returns:
enabled
public Boolean enabled()
Get indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
Returns:
scopes
public List
Get 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.
Returns:
withActions
public ActivityLogAlertResourceInner withActions(ActivityLogAlertActionList actions)
Set the actions that will activate when the condition is met.
Parameters:
Returns:
withCondition
public ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition)
Set the condition that will cause this alert to activate.
Parameters:
Returns:
withDescription
public ActivityLogAlertResourceInner withDescription(String description)
Set a description of this activity log alert.
Parameters:
Returns:
withEnabled
public ActivityLogAlertResourceInner withEnabled(Boolean enabled)
Set indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
Parameters:
Returns:
withScopes
public ActivityLogAlertResourceInner withScopes(List
Set 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.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for