DataCollectionRuleDestinations Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. DestinationsSpec - com.
azure. resourcemanager. monitor. models. DataCollectionRuleDestinations
- com.
- com.
public final class DataCollectionRuleDestinations
extends DestinationsSpec
The specification of destinations.
Constructor Summary
Constructor | Description |
---|---|
DataCollectionRuleDestinations() |
Creates an instance of Data |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Data |
withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)
Set the azure |
Data |
withLogAnalytics(List<LogAnalyticsDestination> logAnalytics)
Set the log |
Methods inherited from DestinationsSpec
Methods inherited from java.lang.Object
Constructor Details
DataCollectionRuleDestinations
public DataCollectionRuleDestinations()
Creates an instance of DataCollectionRuleDestinations class.
Method Details
fromJson
public static DataCollectionRuleDestinations fromJson(JsonReader jsonReader)
Reads an instance of DataCollectionRuleDestinations from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DataCollectionRuleDestinations.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
DataCollectionRuleDestinations.validate()withAzureMonitorMetrics
public DataCollectionRuleDestinations withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)
Set the azureMonitorMetrics property: Azure Monitor Metrics destination.
Overrides:
DataCollectionRuleDestinations.withAzureMonitorMetrics(DestinationsSpecAzureMonitorMetrics azureMonitorMetrics)Parameters:
withLogAnalytics
public DataCollectionRuleDestinations withLogAnalytics(List
Set the logAnalytics property: List of Log Analytics destinations.
Overrides:
DataCollectionRuleDestinations.withLogAnalytics(List<LogAnalyticsDestination> logAnalytics)Parameters:
Applies to
Azure SDK for Java