Azure Monitor · Schema

MetricSettings

Application InsightsCloudLogsMetricsMonitoringObservability

Properties

Name Type Description
timeGrain string The timegrain of the metric in ISO 8601 format.
category string Name of a Diagnostic Metric category for a resource type.
enabled boolean Indicates whether this metric category is enabled.
retentionPolicy object
View JSON Schema on GitHub

JSON Schema

microsoft-azure-monitor-metricsettings-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MetricSettings",
  "title": "MetricSettings",
  "type": "object",
  "required": [
    "enabled"
  ],
  "properties": {
    "timeGrain": {
      "type": "string",
      "description": "The timegrain of the metric in ISO 8601 format."
    },
    "category": {
      "type": "string",
      "description": "Name of a Diagnostic Metric category for a resource type."
    },
    "enabled": {
      "type": "boolean",
      "description": "Indicates whether this metric category is enabled."
    },
    "retentionPolicy": {
      "$ref": "#/components/schemas/RetentionPolicy"
    }
  }
}