Class DataCollectionRuleDestinations
java.lang.Object
com.azure.resourcemanager.monitor.models.DestinationsSpec
com.azure.resourcemanager.monitor.models.DataCollectionRuleDestinations
The specification of destinations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataCollectionRuleDestinations class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Validates the instance.withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics) Set the azureMonitorMetrics property: Azure Monitor Metrics destination.withLogAnalytics(List<LogAnalyticsDestination> logAnalytics) Set the logAnalytics property: List of Log Analytics destinations.Methods inherited from class com.azure.resourcemanager.monitor.models.DestinationsSpec
azureMonitorMetrics, logAnalytics
-
Constructor Details
-
DataCollectionRuleDestinations
public DataCollectionRuleDestinations()Creates an instance of DataCollectionRuleDestinations class.
-
-
Method Details
-
withLogAnalytics
Set the logAnalytics property: List of Log Analytics destinations.- Overrides:
withLogAnalyticsin classDestinationsSpec- Parameters:
logAnalytics- the logAnalytics value to set.- Returns:
- the DestinationsSpec object itself.
-
withAzureMonitorMetrics
public DataCollectionRuleDestinations withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics) Set the azureMonitorMetrics property: Azure Monitor Metrics destination.- Overrides:
withAzureMonitorMetricsin classDestinationsSpec- Parameters:
azureMonitorMetrics- the azureMonitorMetrics value to set.- Returns:
- the DestinationsSpec object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDestinationsSpec- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-