{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-monitor/json-schema/microsoft-azure-monitor-data-collection-rule-configuration-metadata-response-schema.json",
  "title": "DataCollectionRuleConfigurationMetadataResponse",
  "description": "Response containing configuration metadata for data collection rules.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-monitor-datacollectionruleconfigurationmetadata-api-openapi.yml#/components/schemas/DataCollectionRuleConfigurationMetadataResponse",
  "type": "object",
  "properties": {
    "configurationMetadata": {
      "$ref": "#/$defs/ConfigurationMetadata",
      "description": "The configuration metadata for platform telemetry."
    }
  },
  "$defs": {
    "ConfigurationMetadata": {
      "type": "object",
      "description": "Configuration metadata for data collection.",
      "properties": {
        "platformTelemetry": {
          "$ref": "#/$defs/PlatformTelemetryMetadata",
          "description": "Platform telemetry configuration metadata."
        }
      }
    },
    "LogsSpecification": {
      "type": "object",
      "description": "Specification for a logs stream.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the logs stream."
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the logs stream."
        },
        "groups": {
          "type": "array",
          "description": "Categorization groups for the logs stream.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "MetricsSpecification": {
      "type": "object",
      "description": "Specification for a metrics stream. Properties are driven by the service and are manifest driven.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the metric."
        },
        "displayName": {
          "type": "string",
          "description": "The display name of the metric."
        },
        "description": {
          "type": "string",
          "description": "Description of the metric."
        },
        "unit": {
          "type": "string",
          "description": "The unit of measurement for the metric.\nThis value is provided by the service and is manifest-driven; the set of possible values may evolve over time.\nExample: \"Count\"."
        },
        "aggregationType": {
          "type": "string",
          "description": "The aggregation type for the metric.\nThis value is provided by the service and is manifest-driven; the set of possible values may evolve over time.\nExample: \"Total\"."
        },
        "groups": {
          "type": "array",
          "description": "Categorization groups for the metric.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "PlatformTelemetryMetadata": {
      "type": "object",
      "description": "Metadata for platform telemetry (logs and metrics).",
      "properties": {
        "platformLogs": {
          "$ref": "#/$defs/TelemetryTypeMetadata",
          "description": "Configuration metadata for platform logs."
        },
        "platformMetrics": {
          "$ref": "#/$defs/TelemetryTypeMetadata",
          "description": "Configuration metadata for platform metrics."
        }
      }
    },
    "StreamDetailMetadata": {
      "type": "object",
      "description": "Detailed metadata for a stream (logs or metrics specification).",
      "properties": {
        "logsSpecification": {
          "$ref": "#/$defs/LogsSpecification",
          "description": "Specification for logs stream."
        },
        "metricsSpecification": {
          "$ref": "#/$defs/MetricsSpecification",
          "description": "Specification for metrics stream."
        }
      }
    },
    "StreamMetadata": {
      "type": "object",
      "description": "Metadata for a specific data stream.",
      "properties": {
        "streamId": {
          "type": "string",
          "description": "The unique identifier for the stream."
        },
        "metadata": {
          "$ref": "#/$defs/StreamDetailMetadata",
          "description": "Additional metadata about the stream."
        }
      }
    },
    "TelemetryTypeMetadata": {
      "type": "object",
      "description": "Metadata for a specific telemetry type (logs or metrics).",
      "properties": {
        "supportedDestinations": {
          "type": "array",
          "description": "List of supported destination resource types.",
          "items": {
            "type": "string"
          }
        },
        "supportedResourceTypes": {
          "type": "array",
          "description": "List of supported source resource types.",
          "items": {
            "type": "string"
          }
        },
        "supportedStreams": {
          "type": "array",
          "description": "Detailed stream information. Only returned when withStreamMetadata is true in the request.",
          "items": {
            "$ref": "#/$defs/StreamMetadata"
          },
          "x-ms-identifiers": [
            "streamId"
          ]
        }
      }
    }
  }
}