Class DestinationsSpecAzureMonitorMetrics
java.lang.Object
com.azure.resourcemanager.monitor.models.AzureMonitorMetricsDestination
com.azure.resourcemanager.monitor.models.DestinationsSpecAzureMonitorMetrics
Azure Monitor Metrics destination.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DestinationsSpecAzureMonitorMetrics class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.Set the name property: A friendly name for the destination.Methods inherited from class com.azure.resourcemanager.monitor.models.AzureMonitorMetricsDestination
name
-
Constructor Details
-
DestinationsSpecAzureMonitorMetrics
public DestinationsSpecAzureMonitorMetrics()Creates an instance of DestinationsSpecAzureMonitorMetrics class.
-
-
Method Details
-
withName
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.- Overrides:
withNamein classAzureMonitorMetricsDestination- Parameters:
name- the name value to set.- Returns:
- the AzureMonitorMetricsDestination object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAzureMonitorMetricsDestination- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-