Class ActivityLogAlertResourceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.monitor.models.ResourceAutoGenerated2
com.azure.resourcemanager.monitor.fluent.models.ActivityLogAlertResourceInner
An activity log alert resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()Get the actions property: The actions that will activate when the condition is met.Get the condition property: The condition that will cause this alert to activate.Get the description property: A description of this activity log alert.enabled()Get the enabled property: Indicates whether this activity log alert is enabled.scopes()Get the scopes property: A list of resourceIds that will be used as prefixes.voidvalidate()Validates the instance.withActions(ActivityLogAlertActionList actions) Set the actions property: The actions that will activate when the condition is met.withCondition(ActivityLogAlertAllOfCondition condition) Set the condition property: The condition that will cause this alert to activate.withDescription(String description) Set the description property: A description of this activity log alert.withEnabled(Boolean enabled) Set the enabled property: Indicates whether this activity log alert is enabled.withLocation(String location) withScopes(List<String> scopes) Set the scopes property: A list of resourceIds that will be used as prefixes.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ActivityLogAlertResourceInner
public ActivityLogAlertResourceInner()
-
-
Method Details
-
scopes
Get the scopes property: 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:
- the scopes value.
-
withScopes
Set the scopes property: 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:
scopes- the scopes value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
enabled
Get the enabled property: 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:
- the enabled value.
-
withEnabled
Set the enabled property: 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:
enabled- the enabled value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
condition
Get the condition property: The condition that will cause this alert to activate.- Returns:
- the condition value.
-
withCondition
Set the condition property: The condition that will cause this alert to activate.- Parameters:
condition- the condition value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
actions
Get the actions property: The actions that will activate when the condition is met.- Returns:
- the actions value.
-
withActions
Set the actions property: The actions that will activate when the condition is met.- Parameters:
actions- the actions value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
description
Get the description property: A description of this activity log alert.- Returns:
- the description value.
-
withDescription
Set the description property: A description of this activity log alert.- Parameters:
description- the description value to set.- Returns:
- the ActivityLogAlertResourceInner object itself.
-
withLocation
- Overrides:
withLocationin classResourceAutoGenerated2
-
withTags
- Overrides:
withTagsin classResourceAutoGenerated2
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceAutoGenerated2- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-