Class MetricSettings
- java.lang.Object
-
- com.microsoft.azure.management.monitor.MetricSettings
-
public class MetricSettings extends Object
Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
-
-
Constructor Summary
Constructors Constructor Description MetricSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcategory()Get name of a Diagnostic Metric category for a resource type this setting is applied to.booleanenabled()Get a value indicating whether this category is enabled.RetentionPolicyretentionPolicy()Get the retention policy for this category.org.joda.time.PeriodtimeGrain()Get the timegrain of the metric in ISO8601 format.MetricSettingswithCategory(String category)Set name of a Diagnostic Metric category for a resource type this setting is applied to.MetricSettingswithEnabled(boolean enabled)Set a value indicating whether this category is enabled.MetricSettingswithRetentionPolicy(RetentionPolicy retentionPolicy)Set the retention policy for this category.MetricSettingswithTimeGrain(org.joda.time.Period timeGrain)Set the timegrain of the metric in ISO8601 format.
-
-
-
Method Detail
-
timeGrain
public org.joda.time.Period timeGrain()
Get the timegrain of the metric in ISO8601 format.- Returns:
- the timeGrain value
-
withTimeGrain
public MetricSettings withTimeGrain(org.joda.time.Period timeGrain)
Set the timegrain of the metric in ISO8601 format.- Parameters:
timeGrain- the timeGrain value to set- Returns:
- the MetricSettings object itself.
-
category
public String category()
Get name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation.- Returns:
- the category value
-
withCategory
public MetricSettings withCategory(String category)
Set name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation.- Parameters:
category- the category value to set- Returns:
- the MetricSettings object itself.
-
enabled
public boolean enabled()
Get a value indicating whether this category is enabled.- Returns:
- the enabled value
-
withEnabled
public MetricSettings withEnabled(boolean enabled)
Set a value indicating whether this category is enabled.- Parameters:
enabled- the enabled value to set- Returns:
- the MetricSettings object itself.
-
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retention policy for this category.- Returns:
- the retentionPolicy value
-
withRetentionPolicy
public MetricSettings withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retention policy for this category.- Parameters:
retentionPolicy- the retentionPolicy value to set- Returns:
- the MetricSettings object itself.
-
-