{
  "type": "object",
  "description": "A single metric data point",
  "properties": {
    "name": {
      "type": "string",
      "description": "The metric name (e.g., cpu.usage.percent)",
      "example": "example-resource-01"
    },
    "type": {
      "type": "string",
      "description": "The metric type",
      "example": "gauge",
      "enum": [
        "gauge",
        "count",
        "summary"
      ]
    },
    "value": {
      "type": "object",
      "description": "The metric value. For gauge and count, a number. For summary, an object with count, sum, min, and max fields.",
      "example": 42.5
    },
    "timestamp": {
      "type": "integer",
      "description": "Unix timestamp in milliseconds. Overrides the common timestamp for this metric.",
      "example": 1718153645993
    },
    "interval.ms": {
      "type": "integer",
      "description": "Measurement interval in milliseconds. Required for count and summary types.",
      "example": 100
    },
    "attributes": {
      "type": "object",
      "description": "Additional key-value attributes for this metric point",
      "example": {
        "customAttribute": "example_value"
      }
    }
  },
  "required": [
    "name",
    "type",
    "value"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MetricDataPoint"
}