{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-cursor-paginated-business-activity-item-schema.json",
  "title": "CursorPaginatedBusinessActivityItem",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-business-monitoring-api-openapi.yml#/components/schemas/CursorPaginatedBusinessActivityItem",
  "type": "object",
  "properties": {
    "businessActivity": {
      "$ref": "#/$defs/BusinessActivity"
    },
    "cursor": {
      "$ref": "#/$defs/IngestionOffsetCursor"
    },
    "metrics": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "array",
          "items": {
            "type": "number"
          }
        }
      }
    }
  },
  "required": [
    "cursor"
  ],
  "$defs": {
    "BusinessActivity": {
      "type": "object",
      "properties": {
        "activityId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the activity generated by the source BPM tool"
        },
        "activityName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the activity "
        },
        "activityStart": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Unix timestamp representing the activity's start time"
        },
        "activityType": {
          "type": "string",
          "description": "Type of the activity "
        },
        "callId": {
          "type": "string",
          "writeOnly": true
        },
        "endpointIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "processDefinitionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifier of the process the activity is an instance of."
        },
        "processDefinitionName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the process that the activity is an instance of"
        },
        "rootProcessInstanceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The id of the root process for the activity"
        }
      },
      "required": [
        "activityType"
      ]
    },
    "IngestionOffsetCursor": {
      "type": "object",
      "description": "Cursor to use between successive queries"
    }
  }
}