{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-metrics-result-schema.json",
  "title": "MetricsResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-synthetic-metrics-api-openapi.yml#/components/schemas/MetricsResult",
  "type": "object",
  "properties": {
    "metricsResult": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetricsResultItem"
      }
    }
  },
  "required": [
    "metricsResult"
  ],
  "$defs": {
    "MetricsResultItem": {
      "type": "object",
      "properties": {
        "customTags": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "description": "A map of custom properties composed of the custom property name and its value.  This information will be included if the custom properties were requested or if the query was grouped and the grouping included one or more custom properties."
          },
          "description": "A map of custom properties composed of the custom property name and its value.  This information will be included if the custom properties were requested or if the query was grouped and the grouping included one or more custom properties."
        },
        "metrics": {
          "type": "array",
          "description": "A map of the requested metrics, composed of the metric name and its value.",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "description": "A map of the requested metrics, composed of the metric name and its value."
            },
            "description": "A map of the requested metrics, composed of the metric name and its value."
          }
        },
        "runType": {
          "type": "string",
          "description": "Indicates whether the test was scheduled to run or run now"
        },
        "tests": {
          "type": "array",
          "description": "A description of the Synthetic test associated with the result item.  This information will be included if the request was grouped by synthetic.testId or if includeAggregatedTestId was true on the request.",
          "items": {
            "$ref": "#/$defs/MetricsTestResultItem"
          }
        }
      },
      "required": [
        "metrics"
      ]
    },
    "MetricsTestResultItem": {
      "type": "object",
      "description": "A description of the Synthetic test associated with the result item.  This information will be included if the request was grouped by synthetic.testId or if includeAggregatedTestId was true on the request.",
      "properties": {
        "applicationId": {
          "type": "string",
          "description": "An identifier of an application associated with the Synthetic test.  This field is deprecated and will be replace by the applicationIds field."
        },
        "applicationIds": {
          "type": "array",
          "description": "A list of the applications associated with the Synthetic test.",
          "items": {
            "type": "string",
            "description": "A list of the applications associated with the Synthetic test."
          }
        },
        "locationId": {
          "type": "array",
          "description": "A list of the locations associated with the Synthetic test.",
          "items": {
            "type": "string",
            "description": "A list of the locations associated with the Synthetic test."
          }
        },
        "mobileApplicationIds": {
          "type": "array",
          "description": "A list of the mobile applications associated with the Synthetic test.",
          "items": {
            "type": "string",
            "description": "A list of the mobile applications associated with the Synthetic test."
          }
        },
        "serviceId": {
          "type": "string",
          "description": "A service associated with the Synthetic test."
        },
        "testId": {
          "type": "string",
          "description": "The testId for the Synthetic test."
        },
        "testName": {
          "type": "string",
          "description": "The Synthetic test's name."
        },
        "websiteIds": {
          "type": "array",
          "description": "A list of the websites associated with the Synthetic test.",
          "items": {
            "type": "string",
            "description": "A list of the websites associated with the Synthetic test."
          }
        }
      },
      "required": [
        "testId"
      ]
    }
  }
}