Compartir a través de


AzureMonitorMetricsDestination Class

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

Implements

public class AzureMonitorMetricsDestination
implements JsonSerializable<AzureMonitorMetricsDestination>

Azure Monitor Metrics destination.

Constructor Summary

Constructor Description
AzureMonitorMetricsDestination()

Creates an instance of AzureMonitorMetricsDestination class.

Method Summary

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

Reads an instance of AzureMonitorMetricsDestination from the JsonReader.

String name()

Get the name property: A friendly name for the destination.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureMonitorMetricsDestination withName(String name)

Set the name property: A friendly name for the destination.

Methods inherited from java.lang.Object

Constructor Details

AzureMonitorMetricsDestination

public AzureMonitorMetricsDestination()

Creates an instance of AzureMonitorMetricsDestination class.

Method Details

fromJson

public static AzureMonitorMetricsDestination fromJson(JsonReader jsonReader)

Reads an instance of AzureMonitorMetricsDestination from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public AzureMonitorMetricsDestination withName(String name)

Set the name property: A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.

Parameters:

name - the name value to set.

Returns:

the AzureMonitorMetricsDestination object itself.

Applies to