RuleMetricDataSource Class

A rule metric data source. The discriminator value is always RuleMetricDataSource in this case.

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

Inheritance
azure.mgmt.monitor.v2015_07_01.models._models_py3.RuleDataSource
RuleMetricDataSource

Constructor

RuleMetricDataSource(*, resource_uri: Optional[str] = None, legacy_resource_id: Optional[str] = None, resource_location: Optional[str] = None, metric_namespace: Optional[str] = None, metric_name: Optional[str] = None, **kwargs)

Variables

odata_type
str

Required. specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource.Constant filled by server.

resource_uri
str

the resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.

legacy_resource_id
str

the legacy resource identifier of the resource the rule monitors. NOTE: this property cannot be updated for an existing rule.

resource_location
str

the location of the resource.

metric_namespace
str

the namespace of the metric.

metric_name
str

the name of the metric that defines what the rule monitors.