public class MetricSettings extends Object
Constructor and Description |
---|
MetricSettings() |
Modifier and Type | Method and Description |
---|---|
String |
category()
Get name of a Diagnostic Metric category for a resource type this setting is applied to.
|
boolean |
enabled()
Get a value indicating whether this category is enabled.
|
RetentionPolicy |
retentionPolicy()
Get the retention policy for this category.
|
org.joda.time.Period |
timeGrain()
Get the timegrain of the metric in ISO8601 format.
|
MetricSettings |
withCategory(String category)
Set name of a Diagnostic Metric category for a resource type this setting is applied to.
|
MetricSettings |
withEnabled(boolean enabled)
Set a value indicating whether this category is enabled.
|
MetricSettings |
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retention policy for this category.
|
MetricSettings |
withTimeGrain(org.joda.time.Period timeGrain)
Set the timegrain of the metric in ISO8601 format.
|
public org.joda.time.Period timeGrain()
public MetricSettings withTimeGrain(org.joda.time.Period timeGrain)
timeGrain
- the timeGrain value to setpublic String category()
public MetricSettings withCategory(String category)
category
- the category value to setpublic boolean enabled()
public MetricSettings withEnabled(boolean enabled)
enabled
- the enabled value to setpublic RetentionPolicy retentionPolicy()
public MetricSettings withRetentionPolicy(RetentionPolicy retentionPolicy)
retentionPolicy
- the retentionPolicy value to setCopyright © 2019. All rights reserved.