Class RuleManagementEventDataSource
java.lang.Object
com.azure.resourcemanager.monitor.models.RuleDataSource
com.azure.resourcemanager.monitor.models.RuleManagementEventDataSource
A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RuleManagementEventDataSource class. -
Method Summary
Modifier and TypeMethodDescriptionclaims()Get the claims property: the claims.Get the eventName property: the event name.Get the eventSource property: the event source.level()Get the level property: the level.Get the operationName property: The name of the operation that should be checked for.Get the resourceGroupName property: the resource group name.Get the resourceProviderName property: the resource provider name.status()Get the status property: The status of the operation that should be checked for.Get the subStatus property: the substatus.voidvalidate()Validates the instance.Set the claims property: the claims.withEventName(String eventName) Set the eventName property: the event name.withEventSource(String eventSource) Set the eventSource property: the event source.withLegacyResourceId(String legacyResourceId) Set the legacyResourceId property: the legacy resource identifier of the resource the rule monitors.Set the level property: the level.withMetricNamespace(String metricNamespace) Set the metricNamespace property: the namespace of the metric.withOperationName(String operationName) Set the operationName property: The name of the operation that should be checked for.withResourceGroupName(String resourceGroupName) Set the resourceGroupName property: the resource group name.withResourceLocation(String resourceLocation) Set the resourceLocation property: the location of the resource.withResourceProviderName(String resourceProviderName) Set the resourceProviderName property: the resource provider name.withResourceUri(String resourceUri) Set the resourceUri property: the resource identifier of the resource the rule monitors.withStatus(String status) Set the status property: The status of the operation that should be checked for.withSubStatus(String subStatus) Set the subStatus property: the substatus.Methods inherited from class com.azure.resourcemanager.monitor.models.RuleDataSource
legacyResourceId, metricNamespace, resourceLocation, resourceUri
-
Constructor Details
-
RuleManagementEventDataSource
public RuleManagementEventDataSource()Creates an instance of RuleManagementEventDataSource class.
-
-
Method Details
-
eventName
Get the eventName property: the event name.- Returns:
- the eventName value.
-
withEventName
Set the eventName property: the event name.- Parameters:
eventName- the eventName value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
eventSource
Get the eventSource property: the event source.- Returns:
- the eventSource value.
-
withEventSource
Set the eventSource property: the event source.- Parameters:
eventSource- the eventSource value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
level
Get the level property: the level.- Returns:
- the level value.
-
withLevel
Set the level property: the level.- Parameters:
level- the level value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
operationName
Get the operationName property: The name of the operation that should be checked for. If no name is provided, any operation will match.- Returns:
- the operationName value.
-
withOperationName
Set the operationName property: The name of the operation that should be checked for. If no name is provided, any operation will match.- Parameters:
operationName- the operationName value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
resourceGroupName
Get the resourceGroupName property: the resource group name.- Returns:
- the resourceGroupName value.
-
withResourceGroupName
Set the resourceGroupName property: the resource group name.- Parameters:
resourceGroupName- the resourceGroupName value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
resourceProviderName
Get the resourceProviderName property: the resource provider name.- Returns:
- the resourceProviderName value.
-
withResourceProviderName
Set the resourceProviderName property: the resource provider name.- Parameters:
resourceProviderName- the resourceProviderName value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
status
Get the status property: The status of the operation that should be checked for. If no status is provided, any status will match.- Returns:
- the status value.
-
withStatus
Set the status property: The status of the operation that should be checked for. If no status is provided, any status will match.- Parameters:
status- the status value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
subStatus
Get the subStatus property: the substatus.- Returns:
- the subStatus value.
-
withSubStatus
Set the subStatus property: the substatus.- Parameters:
subStatus- the subStatus value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
claims
Get the claims property: the claims.- Returns:
- the claims value.
-
withClaims
Set the claims property: the claims.- Parameters:
claims- the claims value to set.- Returns:
- the RuleManagementEventDataSource object itself.
-
withResourceUri
Set the resourceUri property: the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.- Overrides:
withResourceUriin classRuleDataSource- Parameters:
resourceUri- the resourceUri value to set.- Returns:
- the RuleDataSource object itself.
-
withLegacyResourceId
Set the legacyResourceId property: the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.- Overrides:
withLegacyResourceIdin classRuleDataSource- Parameters:
legacyResourceId- the legacyResourceId value to set.- Returns:
- the RuleDataSource object itself.
-
withResourceLocation
Set the resourceLocation property: the location of the resource.- Overrides:
withResourceLocationin classRuleDataSource- Parameters:
resourceLocation- the resourceLocation value to set.- Returns:
- the RuleDataSource object itself.
-
withMetricNamespace
Set the metricNamespace property: the namespace of the metric.- Overrides:
withMetricNamespacein classRuleDataSource- Parameters:
metricNamespace- the metricNamespace value to set.- Returns:
- the RuleDataSource object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classRuleDataSource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-