{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-logic-apps/json-schema/azure-logic-apps-tracking-events-definition-schema.json",
  "title": "TrackingEventsDefinition",
  "description": "The tracking events definition.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-logic-apps-integrationaccounts-api-openapi.yml#/components/schemas/TrackingEventsDefinition",
  "additionalProperties": false,
  "properties": {
    "events": {
      "description": "The events.",
      "items": {
        "$ref": "#/$defs/TrackingEvent"
      },
      "type": "array"
    },
    "sourceType": {
      "description": "The source type.",
      "type": "string"
    },
    "trackEventsOptions": {
      "$ref": "#/$defs/TrackEventsOperationOptions",
      "description": "The track events options."
    }
  },
  "required": [
    "sourceType",
    "events"
  ],
  "type": "object",
  "$defs": {
    "EventLevel": {
      "description": "The event level.",
      "enum": [
        "LogAlways",
        "Critical",
        "Error",
        "Warning",
        "Informational",
        "Verbose"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": false,
        "name": "EventLevel"
      }
    },
    "TrackEventsOperationOptions": {
      "description": "The track events operation options.",
      "enum": [
        "None",
        "DisableSourceInfoEnrich"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "TrackEventsOperationOptions"
      }
    },
    "TrackingEvent": {
      "additionalProperties": false,
      "description": "The tracking event.",
      "properties": {
        "error": {
          "$ref": "#/$defs/TrackingEventErrorInfo",
          "description": "The error."
        },
        "eventLevel": {
          "$ref": "#/$defs/EventLevel",
          "description": "The event level."
        },
        "eventTime": {
          "description": "The event time.",
          "format": "date-time",
          "type": "string"
        },
        "recordType": {
          "$ref": "#/$defs/TrackingRecordType",
          "description": "The record type."
        }
      },
      "required": [
        "eventLevel",
        "eventTime",
        "recordType"
      ],
      "type": "object"
    },
    "TrackingEventErrorInfo": {
      "additionalProperties": false,
      "description": "The tracking event error info.",
      "properties": {
        "code": {
          "description": "The code.",
          "type": "string"
        },
        "message": {
          "description": "The message.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "TrackingRecordType": {
      "description": "The tracking record type.",
      "enum": [
        "NotSpecified",
        "Custom",
        "AS2Message",
        "AS2MDN",
        "X12Interchange",
        "X12FunctionalGroup",
        "X12TransactionSet",
        "X12InterchangeAcknowledgment",
        "X12FunctionalGroupAcknowledgment",
        "X12TransactionSetAcknowledgment",
        "EdifactInterchange",
        "EdifactFunctionalGroup",
        "EdifactTransactionSet",
        "EdifactInterchangeAcknowledgment",
        "EdifactFunctionalGroupAcknowledgment",
        "EdifactTransactionSetAcknowledgment"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "TrackingRecordType"
      }
    }
  }
}