次の方法で共有


DestinationsSpec Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.DestinationsSpec

Implements

public class DestinationsSpec
implements JsonSerializable<DestinationsSpec>

Specification of destinations that can be used in data flows.

Constructor Summary

Constructor Description
DestinationsSpec()

Creates an instance of DestinationsSpec class.

Method Summary

Modifier and Type Method and Description
DestinationsSpecAzureMonitorMetrics azureMonitorMetrics()

Get the azureMonitorMetrics property: Azure Monitor Metrics destination.

static DestinationsSpec fromJson(JsonReader jsonReader)

Reads an instance of DestinationsSpec from the JsonReader.

List<LogAnalyticsDestination> logAnalytics()

Get the logAnalytics property: List of Log Analytics destinations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DestinationsSpec withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)

Set the azureMonitorMetrics property: Azure Monitor Metrics destination.

DestinationsSpec withLogAnalytics(List<LogAnalyticsDestination> logAnalytics)

Set the logAnalytics property: List of Log Analytics destinations.

Methods inherited from java.lang.Object

Constructor Details

DestinationsSpec

public DestinationsSpec()

Creates an instance of DestinationsSpec class.

Method Details

azureMonitorMetrics

public DestinationsSpecAzureMonitorMetrics azureMonitorMetrics()

Get the azureMonitorMetrics property: Azure Monitor Metrics destination.

Returns:

the azureMonitorMetrics value.

fromJson

public static DestinationsSpec fromJson(JsonReader jsonReader)

Reads an instance of DestinationsSpec from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

logAnalytics

public List logAnalytics()

Get the logAnalytics property: List of Log Analytics destinations.

Returns:

the logAnalytics value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureMonitorMetrics

public DestinationsSpec withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)

Set the azureMonitorMetrics property: Azure Monitor Metrics destination.

Parameters:

azureMonitorMetrics - the azureMonitorMetrics value to set.

Returns:

the DestinationsSpec object itself.

withLogAnalytics

public DestinationsSpec withLogAnalytics(List logAnalytics)

Set the logAnalytics property: List of Log Analytics destinations.

Parameters:

logAnalytics - the logAnalytics value to set.

Returns:

the DestinationsSpec object itself.

Applies to