ActivityLogAlertResourceInner Class

  • java.lang.Object
    • Indexable
      • Resource
        • com.microsoft.azure.management.monitor.implementation.ActivityLogAlertResourceInner

public class ActivityLogAlertResourceInner implements Resource

An activity log alert resource.

Method Summary

Modifier and Type Method and Description
ActivityLogAlertActionList actions()

Get the actions that will activate when the condition is met.

ActivityLogAlertAllOfCondition 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.

ActivityLogAlertResourceInner withActions(ActivityLogAlertActionList actions)

Set the actions that will activate when the condition is met.

ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition)

Set the condition that will cause this alert to activate.

ActivityLogAlertResourceInner withDescription(String description)

Set a description of this activity log alert.

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.

ActivityLogAlertResourceInner 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:

the actions value

condition

public ActivityLogAlertAllOfCondition condition()

Get the condition that will cause this alert to activate.

Returns:

the condition value

description

public String description()

Get a description of this activity log alert.

Returns:

the description value

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:

the enabled value

scopes

public List 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.

Returns:

the scopes value

withActions

public ActivityLogAlertResourceInner withActions(ActivityLogAlertActionList actions)

Set the actions that will activate when the condition is met.

Parameters:

actions - the actions value to set

Returns:

the ActivityLogAlertResourceInner object itself.

withCondition

public ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition)

Set the condition that will cause this alert to activate.

Parameters:

condition - the condition value to set

Returns:

the ActivityLogAlertResourceInner object itself.

withDescription

public ActivityLogAlertResourceInner withDescription(String description)

Set a description of this activity log alert.

Parameters:

description - the description value to set

Returns:

the ActivityLogAlertResourceInner object itself.

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:

enabled - the enabled value to set

Returns:

the ActivityLogAlertResourceInner object itself.

withScopes

public ActivityLogAlertResourceInner withScopes(List 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.

Parameters:

scopes - the scopes value to set

Returns:

the ActivityLogAlertResourceInner object itself.

Applies to