{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/DurationMetric",
  "title": "DurationMetric",
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "example": "2021-10-21T12:00:00Z",
      "description": "Timestamp indicating the start of the aggregation bucket (ISO 8601)."
    },
    "end": {
      "type": "string",
      "example": "2021-10-21T13:00:00Z",
      "description": "Timestamp indicating the end of the aggregation bucket (ISO 8601)."
    },
    "duration": {
      "type": "number",
      "example": 13,
      "description": "The time duration (in a given state) in the bucket."
    }
  }
}