RuleMetricDataSourceResponse

data class RuleMetricDataSourceResponse(val legacyResourceId: String? = null, val metricName: String? = null, val metricNamespace: String? = null, val odataType: String, val resourceLocation: String? = null, val resourceUri: String? = null)

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

Constructors

Link copied to clipboard
constructor(legacyResourceId: String? = null, metricName: String? = null, metricNamespace: String? = null, odataType: String, resourceLocation: String? = null, resourceUri: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard
val metricName: String? = null

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

Link copied to clipboard
val metricNamespace: String? = null

the namespace of the metric.

Link copied to clipboard

specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource'.

Link copied to clipboard

the location of the resource.

Link copied to clipboard
val resourceUri: String? = null

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