RuleManagementEventDataSource Class

public final class RuleManagementEventDataSource
extends RuleDataSource

A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case.

Constructor Summary

Constructor Description
RuleManagementEventDataSource()

Creates an instance of RuleManagementEventDataSource class.

Method Summary

Modifier and Type Method and Description
RuleManagementEventClaimsDataSource claims()

Get the claims property: the claims.

String eventName()

Get the eventName property: the event name.

String eventSource()

Get the eventSource property: the event source.

static RuleManagementEventDataSource fromJson(JsonReader jsonReader)

Reads an instance of RuleManagementEventDataSource from the JsonReader.

String level()

Get the level property: the level.

String odataType()

Get the odataType property: specifies the type of data source.

String operationName()

Get the operationName property: The name of the operation that should be checked for.

String resourceGroupName()

Get the resourceGroupName property: the resource group name.

String resourceProviderName()

Get the resourceProviderName property: the resource provider name.

String status()

Get the status property: The status of the operation that should be checked for.

String subStatus()

Get the subStatus property: the substatus.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RuleManagementEventDataSource withClaims(RuleManagementEventClaimsDataSource claims)

Set the claims property: the claims.

RuleManagementEventDataSource withEventName(String eventName)

Set the eventName property: the event name.

RuleManagementEventDataSource withEventSource(String eventSource)

Set the eventSource property: the event source.

RuleManagementEventDataSource withLegacyResourceId(String legacyResourceId)

Set the legacyResourceId property: the legacy resource identifier of the resource the rule monitors.

RuleManagementEventDataSource withLevel(String level)

Set the level property: the level.

RuleManagementEventDataSource withMetricNamespace(String metricNamespace)

Set the metricNamespace property: the namespace of the metric.

RuleManagementEventDataSource withOperationName(String operationName)

Set the operationName property: The name of the operation that should be checked for.

RuleManagementEventDataSource withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: the resource group name.

RuleManagementEventDataSource withResourceLocation(String resourceLocation)

Set the resourceLocation property: the location of the resource.

RuleManagementEventDataSource withResourceProviderName(String resourceProviderName)

Set the resourceProviderName property: the resource provider name.

RuleManagementEventDataSource withResourceUri(String resourceUri)

Set the resourceUri property: the resource identifier of the resource the rule monitors.

RuleManagementEventDataSource withStatus(String status)

Set the status property: The status of the operation that should be checked for.

RuleManagementEventDataSource withSubStatus(String subStatus)

Set the subStatus property: the substatus.

Methods inherited from RuleDataSource

Methods inherited from java.lang.Object

Constructor Details

RuleManagementEventDataSource

public RuleManagementEventDataSource()

Creates an instance of RuleManagementEventDataSource class.

Method Details

claims

public RuleManagementEventClaimsDataSource claims()

Get the claims property: the claims.

Returns:

the claims value.

eventName

public String eventName()

Get the eventName property: the event name.

Returns:

the eventName value.

eventSource

public String eventSource()

Get the eventSource property: the event source.

Returns:

the eventSource value.

fromJson

public static RuleManagementEventDataSource fromJson(JsonReader jsonReader)

Reads an instance of RuleManagementEventDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RuleManagementEventDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RuleManagementEventDataSource.

level

public String level()

Get the level property: the level.

Returns:

the level value.

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:

the odataType value.

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:

the operationName value.

resourceGroupName

public String resourceGroupName()

Get the resourceGroupName property: the resource group name.

Returns:

the resourceGroupName value.

resourceProviderName

public String resourceProviderName()

Get the resourceProviderName property: the resource provider name.

Returns:

the resourceProviderName value.

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:

the status value.

subStatus

public String subStatus()

Get the subStatus property: the substatus.

Returns:

the subStatus value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RuleManagementEventDataSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

RuleManagementEventDataSource.validate()

withClaims

public RuleManagementEventDataSource withClaims(RuleManagementEventClaimsDataSource claims)

Set the claims property: the claims.

Parameters:

claims - the claims value to set.

Returns:

the RuleManagementEventDataSource object itself.

withEventName

public RuleManagementEventDataSource withEventName(String eventName)

Set the eventName property: the event name.

Parameters:

eventName - the eventName value to set.

Returns:

the RuleManagementEventDataSource object itself.

withEventSource

public RuleManagementEventDataSource withEventSource(String eventSource)

Set the eventSource property: the event source.

Parameters:

eventSource - the eventSource value to set.

Returns:

the RuleManagementEventDataSource object itself.

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:

legacyResourceId

withLevel

public RuleManagementEventDataSource withLevel(String level)

Set the level property: the level.

Parameters:

level - the level value to set.

Returns:

the RuleManagementEventDataSource object itself.

withMetricNamespace

public RuleManagementEventDataSource withMetricNamespace(String metricNamespace)

Set the metricNamespace property: the namespace of the metric.

Overrides:

RuleManagementEventDataSource.withMetricNamespace(String metricNamespace)

Parameters:

metricNamespace

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:

operationName - the operationName value to set.

Returns:

the RuleManagementEventDataSource object itself.

withResourceGroupName

public RuleManagementEventDataSource withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: the resource group name.

Parameters:

resourceGroupName - the resourceGroupName value to set.

Returns:

the RuleManagementEventDataSource object itself.

withResourceLocation

public RuleManagementEventDataSource withResourceLocation(String resourceLocation)

Set the resourceLocation property: the location of the resource.

Overrides:

RuleManagementEventDataSource.withResourceLocation(String resourceLocation)

Parameters:

resourceLocation

withResourceProviderName

public RuleManagementEventDataSource withResourceProviderName(String resourceProviderName)

Set the resourceProviderName property: the resource provider name.

Parameters:

resourceProviderName - the resourceProviderName value to set.

Returns:

the RuleManagementEventDataSource object itself.

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:

resourceUri

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:

status - the status value to set.

Returns:

the RuleManagementEventDataSource object itself.

withSubStatus

public RuleManagementEventDataSource withSubStatus(String subStatus)

Set the subStatus property: the substatus.

Parameters:

subStatus - the subStatus value to set.

Returns:

the RuleManagementEventDataSource object itself.

Applies to

Azure SDK for Java

Latest