{
  "$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-baseline-schema.json",
  "title": "microsoft.graph.userExperienceAnalyticsBaseline",
  "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.userExperienceAnalyticsBaseline",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "userExperienceAnalyticsBaseline",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdDateTime": {
          "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
          "type": "string",
          "description": "The date the custom baseline was created. The value cannot be modified and is automatically populated when the baseline is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default.",
          "format": "date-time"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the baseline."
        },
        "isBuiltIn": {
          "type": "boolean",
          "description": "When TRUE, indicates the current baseline is the commercial median baseline. When FALSE, indicates it is a custom baseline. FALSE by default."
        },
        "appHealthMetrics": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The scores and insights for the application health metrics.",
          "x-ms-navigationProperty": true
        },
        "batteryHealthMetrics": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The scores and insights for the battery health metrics.",
          "x-ms-navigationProperty": true
        },
        "bestPracticesMetrics": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The scores and insights for the best practices metrics.",
          "x-ms-navigationProperty": true
        },
        "deviceBootPerformanceMetrics": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The scores and insights for the device boot performance metrics.",
          "x-ms-navigationProperty": true
        },
        "rebootAnalyticsMetrics": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The scores and insights for the reboot analytics metrics.",
          "x-ms-navigationProperty": true
        },
        "resourcePerformanceMetrics": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The scores and insights for the resource performance metrics.",
          "x-ms-navigationProperty": true
        },
        "workFromAnywhereMetrics": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.userExperienceAnalyticsCategory"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The scores and insights for the work from anywhere metrics.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "The user experience analytics baseline entity contains baseline values against which to compare the user experience analytics scores."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.userExperienceAnalyticsBaseline",
  "$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.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"
    },
    "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"
    }
  }
}