{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-mobile-app-troubleshooting-event-schema.json",
  "title": "microsoft.graph.mobileAppTroubleshootingEvent",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-mobileapptroubleshootingevent-api-openapi.yml#/components/schemas/microsoft.graph.mobileAppTroubleshootingEvent",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "mobileAppTroubleshootingEvent",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "appLogCollectionRequests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.appLogCollectionRequest"
          },
          "description": "Indicates collection of App Log Upload Request.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.mobileAppTroubleshootingEvent",
  "$defs": {
    "microsoft.graph.appLogCollectionRequest": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "appLogCollectionRequest",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "completedDateTime": {
              "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",
                "null"
              ],
              "description": "Time at which the upload log request reached a completed state if not completed yet NULL will be returned.",
              "format": "date-time"
            },
            "customLogFolders": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": "List of log folders."
            },
            "errorMessage": {
              "type": [
                "string",
                "null"
              ],
              "description": "Indicates error message if any during the upload process."
            },
            "status": {
              "$ref": "#/$defs/microsoft.graph.appLogUploadState"
            },
            "@odata.type": {
              "type": "string"
            }
          },
          "description": "Entity for AppLogCollectionRequest contains all logs values."
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.appLogCollectionRequest"
    },
    "microsoft.graph.appLogUploadState": {
      "title": "appLogUploadState",
      "enum": [
        "pending",
        "completed",
        "failed",
        "unknownFutureValue"
      ],
      "type": "string",
      "description": "AppLogUploadStatus",
      "x-ms-enum": {
        "name": "appLogUploadState",
        "modelAsString": false,
        "values": [
          {
            "value": "pending",
            "description": "Default. Indicates that request is waiting to be processed or under processing.",
            "name": "pending"
          },
          {
            "value": "completed",
            "description": "Indicates that request is completed with file uploaded to Azure blob for download.",
            "name": "completed"
          },
          {
            "value": "failed",
            "description": "Indicates that request is completed with file uploaded to Azure blob for download.",
            "name": "failed"
          },
          {
            "value": "unknownFutureValue",
            "description": "Evolvable enumeration sentinel value. Do not use.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "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"
        }
      }
    }
  }
}