{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-front-door/json-schema/microsoft-azure-front-door-latency-scorecard-schema.json",
  "title": "LatencyScorecard",
  "description": "Defines the LatencyScorecard",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-front-door-reports-api-openapi.yml#/components/schemas/LatencyScorecard",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/LatencyScorecardProperties",
      "description": "The properties of a latency scorecard",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "$defs": {
    "LatencyMetric": {
      "type": "object",
      "description": "Defines the properties of a latency metric used in the latency scorecard",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the Latency Metric",
          "readOnly": true
        },
        "endDateTimeUTC": {
          "type": "string",
          "description": "The end time of the Latency Scorecard in UTC",
          "readOnly": true
        },
        "aValue": {
          "type": "number",
          "format": "float",
          "description": "The metric value of the A endpoint",
          "readOnly": true
        },
        "bValue": {
          "type": "number",
          "format": "float",
          "description": "The metric value of the B endpoint",
          "readOnly": true
        },
        "delta": {
          "type": "number",
          "format": "float",
          "description": "The difference in value between endpoint A and B",
          "readOnly": true
        },
        "deltaPercent": {
          "type": "number",
          "format": "float",
          "description": "The percent difference between endpoint A and B",
          "readOnly": true
        },
        "aCLower95CI": {
          "type": "number",
          "format": "float",
          "description": "The lower end of the 95% confidence interval for endpoint A",
          "readOnly": true
        },
        "aHUpper95CI": {
          "type": "number",
          "format": "float",
          "description": "The upper end of the 95% confidence interval for endpoint A",
          "readOnly": true
        },
        "bCLower95CI": {
          "type": "number",
          "format": "float",
          "description": "The lower end of the 95% confidence interval for endpoint B",
          "readOnly": true
        },
        "bUpper95CI": {
          "type": "number",
          "format": "float",
          "description": "The upper end of the 95% confidence interval for endpoint B",
          "readOnly": true
        }
      }
    },
    "LatencyScorecardProperties": {
      "type": "object",
      "description": "Defines a the properties of a Latency Scorecard",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the Latency Scorecard",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the Latency Scorecard",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "The description of the Latency Scorecard",
          "readOnly": true
        },
        "endpointA": {
          "type": "string",
          "description": "The A endpoint in the scorecard",
          "readOnly": true
        },
        "endpointB": {
          "type": "string",
          "description": "The B endpoint in the scorecard",
          "readOnly": true
        },
        "startDateTimeUTC": {
          "type": "string",
          "format": "date-time",
          "description": "The start time of the Latency Scorecard in UTC",
          "readOnly": true
        },
        "endDateTimeUTC": {
          "type": "string",
          "format": "date-time",
          "description": "The end time of the Latency Scorecard in UTC",
          "readOnly": true
        },
        "country": {
          "type": "string",
          "description": "The country associated with the Latency Scorecard. Values are country ISO codes as specified here- https://www.iso.org/iso-3166-country-codes.html",
          "readOnly": true
        },
        "latencyMetrics": {
          "type": "array",
          "description": "The latency metrics of the Latency Scorecard",
          "items": {
            "$ref": "#/$defs/LatencyMetric"
          }
        }
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    }
  }
}