{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DN metric-window snapshot row",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "evidence_class",
    "provider",
    "request_url",
    "request_started_at_utc",
    "response_received_at_utc",
    "http_status",
    "response_sha256",
    "raw_capture_id",
    "instrument",
    "metric_field",
    "metric_value",
    "metric_unit",
    "aggregation_basis",
    "calendar_timezone",
    "nominal_rolling_duration_ms",
    "source_open_time_ms",
    "source_close_time_ms",
    "source_open_time_utc",
    "source_close_time_utc",
    "source_close_role",
    "actual_window_start_utc",
    "actual_window_end_utc",
    "source_update_field",
    "source_update_time_utc",
    "source_event_time_utc",
    "boundary_inclusion",
    "exact_reported_endpoint_span_ms",
    "venue_scope",
    "limitation"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "evidence_class": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "request_url": {
      "type": "string"
    },
    "request_started_at_utc": {
      "type": "string"
    },
    "response_received_at_utc": {
      "type": "string",
      "description": "Collector wall-clock receipt of the HTTP body, not source event time or proof of synchronized clocks."
    },
    "http_status": {
      "type": "integer"
    },
    "response_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "raw_capture_id": {
      "type": "string"
    },
    "instrument": {
      "type": "string"
    },
    "metric_field": {
      "type": "string"
    },
    "metric_value": {
      "type": "string",
      "pattern": "^\\d+(?:\\.\\d+)?$",
      "description": "Exact source decimal string; does not identify units by itself."
    },
    "metric_unit": {
      "type": "string"
    },
    "aggregation_basis": {
      "type": "string"
    },
    "calendar_timezone": {
      "type": [
        "string",
        "null"
      ]
    },
    "nominal_rolling_duration_ms": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d+$"
    },
    "source_open_time_ms": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d+$"
    },
    "source_close_time_ms": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d+$"
    },
    "source_open_time_utc": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_close_time_utc": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_close_role": {
      "type": [
        "string",
        "null"
      ]
    },
    "actual_window_start_utc": {
      "type": [
        "string",
        "null"
      ]
    },
    "actual_window_end_utc": {
      "type": [
        "string",
        "null"
      ],
      "description": "Only a documented actual statistical interval endpoint is populated; future calendar close or generic last_updated is not substituted."
    },
    "source_update_field": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_update_time_utc": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_event_time_utc": {
      "type": [
        "string",
        "null"
      ],
      "description": "Null throughout this capture set: no individual trade event timestamp is substituted."
    },
    "boundary_inclusion": {
      "type": "string"
    },
    "exact_reported_endpoint_span_ms": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d+$"
    },
    "venue_scope": {
      "type": "string"
    },
    "limitation": {
      "type": "string"
    }
  }
}
