ActivityLogAlertResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. monitor. fluent. models. ActivityLogAlertResourceInner
- com.
- com.
- com.
public final class ActivityLogAlertResourceInner
extends Resource
An Activity Log Alert rule resource.
Constructor Summary
Constructor | Description |
---|---|
ActivityLogAlertResourceInner() |
Creates an instance of Activity |
Method Summary
Modifier and Type | Method and Description |
---|---|
Action |
actions()
Get the actions property: The actions that will activate when the condition is met. |
Activity |
condition()
Get the condition property: The condition that will cause this alert to activate. |
String |
description()
Get the description property: A description of this Activity Log Alert rule. |
Boolean |
enabled()
Get the enabled property: Indicates whether this Activity Log Alert rule is enabled. |
static
Activity |
fromJson(JsonReader jsonReader)
Reads an instance of Activity |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
List<String> |
scopes()
Get the scopes property: A list of resource IDs that will be used as prefixes. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Activity |
withActions(ActionList actions)
Set the actions property: The actions that will activate when the condition is met. |
Activity |
withCondition(ActivityLogAlertAllOfCondition condition)
Set the condition property: The condition that will cause this alert to activate. |
Activity |
withDescription(String description)
Set the description property: A description of this Activity Log Alert rule. |
Activity |
withEnabled(Boolean enabled)
Set the enabled property: Indicates whether this Activity Log Alert rule is enabled. |
Activity |
withLocation(String location) |
Activity |
withScopes(List<String> scopes)
Set the scopes property: A list of resource IDs that will be used as prefixes. |
Activity |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ActivityLogAlertResourceInner
public ActivityLogAlertResourceInner()
Creates an instance of ActivityLogAlertResourceInner class.
Method Details
actions
public ActionList actions()
Get the actions property: The actions that will activate when the condition is met.
Returns:
condition
public ActivityLogAlertAllOfCondition condition()
Get the condition property: The condition that will cause this alert to activate.
Returns:
description
public String description()
Get the description property: A description of this Activity Log Alert rule.
Returns:
enabled
public Boolean enabled()
Get the enabled property: 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.
Returns:
fromJson
public static ActivityLogAlertResourceInner fromJson(JsonReader jsonReader)
Reads an instance of ActivityLogAlertResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ActivityLogAlertResourceInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ActivityLogAlertResourceInner.name()Returns:
scopes
public List
Get the scopes property: 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.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ActivityLogAlertResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ActivityLogAlertResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withActions
public ActivityLogAlertResourceInner withActions(ActionList actions)
Set the actions property: The actions that will activate when the condition is met.
Parameters:
Returns:
withCondition
public ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition)
Set the condition property: The condition that will cause this alert to activate.
Parameters:
Returns:
withDescription
public ActivityLogAlertResourceInner withDescription(String description)
Set the description property: A description of this Activity Log Alert rule.
Parameters:
Returns:
withEnabled
public ActivityLogAlertResourceInner withEnabled(Boolean enabled)
Set the enabled property: 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.
Parameters:
Returns:
withLocation
public ActivityLogAlertResourceInner withLocation(String location)
Overrides:
ActivityLogAlertResourceInner.withLocation(String location)Parameters:
withScopes
public ActivityLogAlertResourceInner withScopes(List
Set the scopes property: 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.
Parameters:
Returns:
withTags
public ActivityLogAlertResourceInner withTags(Map
Overrides:
ActivityLogAlertResourceInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java