{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-user-experience-analytics-metric-schema.json",
  "title": "microsoft.graph.userExperienceAnalyticsMetric",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-userexperienceanalyticscategory-api-openapi.yml#/components/schemas/microsoft.graph.userExperienceAnalyticsMetric",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "userExperienceAnalyticsMetric",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "unit": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unit of the user experience analytics metric. Examples: none, percentage, count, seconds, score."
        },
        "value": {
          "oneOf": [
            {
              "type": [
                "number",
                "null"
              ],
              "format": "double"
            },
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "$ref": "#/$defs/ReferenceNumeric"
            }
          ],
          "description": "The value of the user experience analytics metric."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "The user experience analytics metric contains the score and units of a metric of a user experience anlaytics category."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.userExperienceAnalyticsMetric",
  "$defs": {
    "ReferenceNumeric": {
      "enum": [
        "-INF",
        "INF",
        "NaN",
        null
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}