MetricSettings Class

Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.

All required parameters must be populated in order to send to Azure.

Inheritance
MetricSettings

Constructor

MetricSettings(*, enabled: bool, time_grain: Optional[datetime.timedelta] = None, category: Optional[str] = None, retention_policy: Optional[azure.mgmt.monitor.v2017_05_01_preview.models._models_py3.RetentionPolicy] = None, **kwargs)

Variables

time_grain
timedelta

the timegrain of the metric in ISO8601 format.

category
str

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.

enabled
bool

Required. a value indicating whether this category is enabled.

retention_policy
<xref:$>(<xref:python-base-namespace>)RetentionPolicy

the retention policy for this category.