MetricDefinition Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Metric definition class specifies the metadata for a metric.
public class MetricDefinition
type MetricDefinition = class
Public Class MetricDefinition
- Inheritance
-
MetricDefinition
Constructors
MetricDefinition() |
Initializes a new instance of the MetricDefinition class. |
Properties
DisplayName |
Optional. Metric display name. |
IsAlertable |
Optional. Specifies if the metric is alertable. Alerts can be defined on a metric only if this property is true. |
MetricAvailabilities |
Optional. Metric availability specifies the time grain (aggregation interval) and the retention period for the metric in a timegrain. |
MinimumAlertableTimeWindow |
Optional. Specifies the minimum alertable time window for the metric. |
Name |
Optional. Get the metric name. |
Namespace |
Optional. Get the metric namespace. |
PrimaryAggregation |
Optional. Metric primary aggregation specifies the default type for the metrics. This indicates if the metric is of type average, total, minimum or maximum. |
ResourceIdSuffix |
Optional. Metric resource id suffix specfies the sub-resource path within the the resource for the metric. |
Unit |
Optional. The unit for the metric. |