MetricRules Class
- java.
lang. Object - com.
azure. resourcemanager. datadog. models. MetricRules
- com.
Implements
public final class MetricRules
implements JsonSerializable<MetricRules>
Set of rules for sending metrics for the Monitor resource.
Constructor Summary
| Constructor | Description |
|---|---|
| MetricRules() |
Creates an instance of Metric |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Filtering |
filteringTags()
Get the filtering |
|
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Metric |
withFilteringTags(List<FilteringTag> filteringTags)
Set the filtering |
Methods inherited from java.lang.Object
Constructor Details
MetricRules
public MetricRules()
Creates an instance of MetricRules class.
Method Details
filteringTags
public List<FilteringTag> 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:
fromJson
public static MetricRules fromJson(JsonReader jsonReader)
Reads an instance of MetricRules from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withFilteringTags
public MetricRules withFilteringTags(List<FilteringTag> filteringTags)
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:
Returns: