### YamlMime:JavaType uid: "com.azure.resourcemanager.datadog.models.MetricRules" fullName: "com.azure.resourcemanager.datadog.models.MetricRules" name: "MetricRules" nameWithType: "MetricRules" summary: "Set of rules for sending metrics for the Monitor resource." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **MetricRules**" constructors: - uid: "com.azure.resourcemanager.datadog.models.MetricRules.MetricRules()" fullName: "com.azure.resourcemanager.datadog.models.MetricRules.MetricRules()" name: "MetricRules()" nameWithType: "MetricRules.MetricRules()" summary: "Creates an instance of MetricRules class." syntax: "public MetricRules()" desc: "Creates an instance of MetricRules class." methods: - uid: "com.azure.resourcemanager.datadog.models.MetricRules.filteringTags()" fullName: "com.azure.resourcemanager.datadog.models.MetricRules.filteringTags()" name: "filteringTags()" nameWithType: "MetricRules.filteringTags()" summary: "Get the filteringTags property: List of filtering tags to be used for capturing metrics." syntax: "public List filteringTags()" desc: "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: description: "the filteringTags value." type: "List<>" - uid: "com.azure.resourcemanager.datadog.models.MetricRules.validate()" fullName: "com.azure.resourcemanager.datadog.models.MetricRules.validate()" name: "validate()" nameWithType: "MetricRules.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.datadog.models.MetricRules.withFilteringTags(java.util.List)" fullName: "com.azure.resourcemanager.datadog.models.MetricRules.withFilteringTags(List filteringTags)" name: "withFilteringTags(List filteringTags)" nameWithType: "MetricRules.withFilteringTags(List filteringTags)" summary: "Set the filteringTags property: List of filtering tags to be used for capturing metrics." parameters: - description: "the filteringTags value to set." name: "filteringTags" type: "List<>" syntax: "public MetricRules withFilteringTags(List filteringTags)" desc: "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." returns: description: "the MetricRules object itself." type: "" type: "class" desc: "Set of rules for sending metrics for the Monitor resource." metadata: {} package: "com.azure.resourcemanager.datadog.models" artifact: com.azure.resourcemanager:azure-resourcemanager-datadog:1.0.0