Interface ActivityLogAlert.DefinitionStages.WithScopes
- All Known Subinterfaces:
ActivityLogAlert.Definition
- Enclosing interface:
- ActivityLogAlert.DefinitionStages
public static interface ActivityLogAlert.DefinitionStages.WithScopes
The stage of the definition which specifies target resource or subscription for activity log alert.
-
Method Summary
Modifier and TypeMethodDescriptionwithTargetResource(HasId resource) Sets specified resource as a target to alert on activity log.withTargetResource(String resourceId) Sets specified resource as a target to alert on activity log.withTargetSubscription(String targetSubscriptionId) Sets specified subscription as a target to alert on activity log.
-
Method Details
-
withTargetResource
Sets specified resource as a target to alert on activity log.- Parameters:
resourceId- resource Id string.- Returns:
- the next stage of activity log alert definition.
-
withTargetResource
Sets specified resource as a target to alert on activity log.- Parameters:
resource- resource type that is inherited fromHasIdinterface- Returns:
- the next stage of activity log alert definition.
-
withTargetSubscription
ActivityLogAlert.DefinitionStages.WithDescription withTargetSubscription(String targetSubscriptionId) Sets specified subscription as a target to alert on activity log.- Parameters:
targetSubscriptionId- subscription Id.- Returns:
- the next stage of activity log alert definition.
-