{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stepmetrics-co/json-schema/stepmetrics-co-get-v1-ratio-metrics-response-schema.json",
  "title": "GetV1RatioMetricsResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/stepmetrics-co-openapi-generated.yml#/components/schemas/GetV1RatioMetricsResponse",
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "description": "Human‑readable name of the ratio metric"
    },
    "numerator": {
      "type": "object",
      "description": "Definition of the numerator side"
    },
    "denominator": {
      "type": "object",
      "description": "Definition of the denominator side"
    },
    "unit": {
      "type": "string",
      "description": "Unit of the ratio (percent, ratio, per_100, per_1000, per_10000)"
    },
    "siteIds": {
      "type": "array",
      "description": "Optional list of site IDs the ratio applies to"
    },
    "segment": {
      "type": "object",
      "description": "Optional traffic segment filter"
    },
    "current": {
      "type": "object",
      "description": "Current period result with numerator, denominator, value and display"
    },
    "previous": {
      "type": "object",
      "description": "Previous period result with numerator, denominator, value and display"
    }
  }
}