RuleManagementEventDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. RuleDataSource - com.
azure. resourcemanager. monitor. models. RuleManagementEventDataSource
- com.
- com.
public final class RuleManagementEventDataSource
extends RuleDataSource
A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case.
Constructor | Description |
---|---|
Rule |
Creates an instance of Rule |
Modifier and Type | Method and Description |
---|---|
Rule |
claims()
Get the claims property: the claims. |
String |
event Get the event |
String |
event Get the event |
static
Rule |
from Reads an instance of Rule |
String |
level()
Get the level property: the level. |
String |
odata Get the odata |
String |
operation Get the operation |
String |
resource Get the resource |
String |
resource Get the resource |
String |
status()
Get the status property: The status of the operation that should be checked for. |
String |
sub Get the sub |
Json |
to |
void |
validate()
Validates the instance. |
Rule |
with Set the claims property: the claims. |
Rule |
with Set the event |
Rule |
with Set the event |
Rule |
with Set the legacy |
Rule |
with Set the level property: the level. |
Rule |
with Set the metric |
Rule |
with Set the operation |
Rule |
with Set the resource |
Rule |
with Set the resource |
Rule |
with Set the resource |
Rule |
with Set the resource |
Rule |
with Set the status property: The status of the operation that should be checked for. |
Rule |
with Set the sub |
Methods inherited from RuleDataSource
Methods inherited from java.lang.Object
RuleManagementEventDataSource
public RuleManagementEventDataSource()
Creates an instance of RuleManagementEventDataSource class.
claims
public RuleManagementEventClaimsDataSource claims()
Get the claims property: the claims.
Returns:
eventName
public String eventName()
Get the eventName property: the event name.
Returns:
eventSource
public String eventSource()
Get the eventSource property: the event source.
Returns:
fromJson
public static RuleManagementEventDataSource fromJson(JsonReader jsonReader)
Reads an instance of RuleManagementEventDataSource from the JsonReader.
Parameters:
Returns:
Throws:
level
public String level()
Get the level property: the level.
Returns:
odataType
public String odataType()
Get the odataType property: specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource.
Overrides:
RuleManagementEventDataSource.odataType()Returns:
operationName
public String 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:
resourceGroupName
public String resourceGroupName()
Get the resourceGroupName property: the resource group name.
Returns:
resourceProviderName
public String resourceProviderName()
Get the resourceProviderName property: the resource provider name.
Returns:
status
public String 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:
subStatus
public String subStatus()
Get the subStatus property: the substatus.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RuleManagementEventDataSource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RuleManagementEventDataSource.validate()withClaims
public RuleManagementEventDataSource withClaims(RuleManagementEventClaimsDataSource claims)
Set the claims property: the claims.
Parameters:
Returns:
withEventName
public RuleManagementEventDataSource withEventName(String eventName)
Set the eventName property: the event name.
Parameters:
Returns:
withEventSource
public RuleManagementEventDataSource withEventSource(String eventSource)
Set the eventSource property: the event source.
Parameters:
Returns:
withLegacyResourceId
public RuleManagementEventDataSource withLegacyResourceId(String legacyResourceId)
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:
RuleManagementEventDataSource.withLegacyResourceId(String legacyResourceId)Parameters:
withLevel
public RuleManagementEventDataSource withLevel(String level)
Set the level property: the level.
Parameters:
Returns:
withMetricNamespace
public RuleManagementEventDataSource withMetricNamespace(String metricNamespace)
Set the metricNamespace property: the namespace of the metric.
Overrides:
RuleManagementEventDataSource.withMetricNamespace(String metricNamespace)Parameters:
withOperationName
public RuleManagementEventDataSource withOperationName(String operationName)
Set the operationName property: The name of the operation that should be checked for. If no name is provided, any operation will match.
Parameters:
Returns:
withResourceGroupName
public RuleManagementEventDataSource withResourceGroupName(String resourceGroupName)
Set the resourceGroupName property: the resource group name.
Parameters:
Returns:
withResourceLocation
public RuleManagementEventDataSource withResourceLocation(String resourceLocation)
Set the resourceLocation property: the location of the resource.
Overrides:
RuleManagementEventDataSource.withResourceLocation(String resourceLocation)Parameters:
withResourceProviderName
public RuleManagementEventDataSource withResourceProviderName(String resourceProviderName)
Set the resourceProviderName property: the resource provider name.
Parameters:
Returns:
withResourceUri
public RuleManagementEventDataSource withResourceUri(String resourceUri)
Set the resourceUri property: the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
Overrides:
RuleManagementEventDataSource.withResourceUri(String resourceUri)Parameters:
withStatus
public RuleManagementEventDataSource withStatus(String status)
Set the status property: The status of the operation that should be checked for. If no status is provided, any status will match.
Parameters:
Returns:
withSubStatus
public RuleManagementEventDataSource withSubStatus(String subStatus)
Set the subStatus property: the substatus.
Parameters:
Returns: