Class DestinationsSpec
java.lang.Object
com.azure.resourcemanager.monitor.models.DestinationsSpec
- Direct Known Subclasses:
DataCollectionRuleDestinations
Specification of destinations that can be used in data flows.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the azureMonitorMetrics property: Azure Monitor Metrics destination.Get the logAnalytics property: List of Log Analytics destinations.voidvalidate()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.
-
Constructor Details
-
DestinationsSpec
public DestinationsSpec()Creates an instance of DestinationsSpec class.
-
-
Method Details
-
logAnalytics
Get the logAnalytics property: List of Log Analytics destinations.- Returns:
- the logAnalytics value.
-
withLogAnalytics
Set the logAnalytics property: List of Log Analytics destinations.- Parameters:
logAnalytics- the logAnalytics value to set.- Returns:
- the DestinationsSpec object itself.
-
azureMonitorMetrics
Get the azureMonitorMetrics property: Azure Monitor Metrics destination.- Returns:
- the azureMonitorMetrics value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-