Partilhar via


DataCollectionRuleDestinations Class

public final class DataCollectionRuleDestinations
extends DestinationsSpec

The specification of destinations.

Constructor Summary

Constructor Description
DataCollectionRuleDestinations()

Creates an instance of DataCollectionRuleDestinations class.

Method Summary

Modifier and Type Method and Description
static DataCollectionRuleDestinations fromJson(JsonReader jsonReader)

Reads an instance of DataCollectionRuleDestinations from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataCollectionRuleDestinations withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)

Set the azureMonitorMetrics property: Azure Monitor Metrics destination.

DataCollectionRuleDestinations withLogAnalytics(List<LogAnalyticsDestination> logAnalytics)

Set the logAnalytics property: List of Log Analytics destinations.

Methods inherited from DestinationsSpec

Methods inherited from java.lang.Object

Constructor Details

DataCollectionRuleDestinations

public DataCollectionRuleDestinations()

Creates an instance of DataCollectionRuleDestinations class.

Method Details

fromJson

public static DataCollectionRuleDestinations fromJson(JsonReader jsonReader)

Reads an instance of DataCollectionRuleDestinations from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataCollectionRuleDestinations 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 DataCollectionRuleDestinations.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataCollectionRuleDestinations.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DataCollectionRuleDestinations.validate()

withAzureMonitorMetrics

public DataCollectionRuleDestinations withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)

Set the azureMonitorMetrics property: Azure Monitor Metrics destination.

Overrides:

DataCollectionRuleDestinations.withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)

Parameters:

azureMonitorMetrics

withLogAnalytics

public DataCollectionRuleDestinations withLogAnalytics(List logAnalytics)

Set the logAnalytics property: List of Log Analytics destinations.

Overrides:

DataCollectionRuleDestinations.withLogAnalytics(List<LogAnalyticsDestination> logAnalytics)

Parameters:

logAnalytics

Applies to