Class MetricRules
java.lang.Object
com.azure.resourcemanager.dynatrace.models.MetricRules
Set of rules for sending metrics for the Monitor resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the filteringTags property: List of filtering tags to be used for capturing metrics.void
validate()
Validates the instance.withFilteringTags
(List<FilteringTag> filteringTags) Set the filteringTags property: List of filtering tags to be used for capturing metrics.
-
Constructor Details
-
MetricRules
public MetricRules()
-
-
Method Details
-
filteringTags
Get the filteringTags property: List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.- Returns:
- the filteringTags value.
-
withFilteringTags
Set the filteringTags property: List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.- Parameters:
filteringTags
- the filteringTags value to set.- Returns:
- the MetricRules object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-