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