{
  "$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-category-schema.json",
  "title": "microsoft.graph.userExperienceAnalyticsCategory",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-userexperienceanalyticsbaseline-api-openapi.yml#/components/schemas/microsoft.graph.userExperienceAnalyticsCategory",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "userExperienceAnalyticsCategory",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "insights": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsInsight"
          },
          "description": "The insights for the category. Read-only."
        },
        "metricValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsMetric"
          },
          "description": "The metric values for the user experience analytics category. Read-only.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "The user experience analytics category entity contains the scores and insights for the various metrics of a category."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.userExperienceAnalyticsCategory",
  "$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"
        }
      }
    },
    "microsoft.graph.userExperienceAnalyticsInsight": {
      "title": "userExperienceAnalyticsInsight",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "insightId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier of the user experience analytics insight."
        },
        "severity": {
          "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsInsightSeverity"
        },
        "userExperienceAnalyticsMetricId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier of the user experience analytics metric."
        },
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsInsightValue"
          },
          "description": "The value of the user experience analytics insight."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "The user experience analytics insight is the recomendation to improve the user experience analytics score."
    },
    "microsoft.graph.userExperienceAnalyticsInsightSeverity": {
      "title": "userExperienceAnalyticsInsightSeverity",
      "enum": [
        "none",
        "informational",
        "warning",
        "error",
        "unknownFutureValue"
      ],
      "type": "string",
      "description": "Indicates severity of insights. Possible values are: None, Informational, Warning, Error.",
      "x-ms-enum": {
        "name": "userExperienceAnalyticsInsightSeverity",
        "modelAsString": false,
        "values": [
          {
            "value": "none",
            "description": "Indicates that the insight severity is none.",
            "name": "none"
          },
          {
            "value": "informational",
            "description": "Indicates that the insight severity is informational.",
            "name": "informational"
          },
          {
            "value": "warning",
            "description": "Indicates that the insight severity is warning.",
            "name": "warning"
          },
          {
            "value": "error",
            "description": "Indicates that the insight severity is error.",
            "name": "error"
          },
          {
            "value": "unknownFutureValue",
            "description": "Evolvable enumeration sentinel value. Do not use.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "microsoft.graph.userExperienceAnalyticsInsightValue": {
      "title": "userExperienceAnalyticsInsightValue",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "The value in an user experience analytics insight."
    },
    "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"
    }
  }
}