{
  "info": {
    "name": "EventHub Runtime Event Processing",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Examples for source-neutral Runtime Event Processing and the tachograph-driver-esper-v1 profile."
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost:8085"
    },
    {
      "key": "sessionId",
      "value": "11111111-1111-1111-1111-111111111111"
    },
    {
      "key": "sessionId2",
      "value": "22222222-2222-2222-2222-222222222222"
    },
    {
      "key": "compositeSessionId",
      "value": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
    },
    {
      "key": "driverKey",
      "value": "12:12345678901234"
    }
  ],
  "item": [
    {
      "name": "List runtime event-processing profiles",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/eventhub/runtime-processing/event-processing/profiles",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "eventhub",
            "runtime-processing",
            "event-processing",
            "profiles"
          ]
        }
      }
    },
    {
      "name": "Execute tachograph profile - single session and one driver",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"profileKey\": \"tachograph-driver-esper-v1\",\n  \"scope\": {\n    \"sessionId\": \"{{sessionId}}\",\n    \"sourceFamilies\": [\n      \"TACHOGRAPH_FILE_SESSION\"\n    ],\n    \"driverKey\": \"{{driverKey}}\",\n    \"occurredFrom\": \"2026-05-01T00:00:00Z\",\n    \"occurredTo\": \"2026-05-31T23:59:59Z\",\n    \"expandVehicleEvents\": true,\n    \"vehicleExpansionPaddingMinutes\": 15\n  },\n  \"partitioning\": {\n    \"strategy\": \"DRIVER\",\n    \"partitionKeys\": [\n      \"{{driverKey}}\"\n    ],\n    \"attachVehicleEvidence\": true,\n    \"vehicleEvidencePaddingMinutes\": 15\n  },\n  \"parameters\": {\n    \"significantDrivingMinutes\": 3,\n    \"minimumRestPeriodMinutes\": 720,\n    \"attachVehicleOnlyEvents\": true,\n    \"vehicleEvidencePaddingMinutes\": 15\n  }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/eventhub/runtime-processing/event-processing",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "eventhub",
            "runtime-processing",
            "event-processing"
          ]
        }
      }
    },
    {
      "name": "Execute tachograph profile - multiple sessions all drivers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"profileKey\": \"tachograph-driver-esper-v1\",\n  \"scope\": {\n    \"sessionIds\": [\n      \"{{sessionId}}\",\n      \"{{sessionId2}}\"\n    ],\n    \"sourceFamilies\": [\n      \"TACHOGRAPH_FILE_SESSION\"\n    ],\n    \"occurredFrom\": \"2026-05-01T00:00:00Z\",\n    \"occurredTo\": \"2026-05-31T23:59:59Z\",\n    \"expandVehicleEvents\": true,\n    \"vehicleExpansionPaddingMinutes\": 15\n  },\n  \"partitioning\": {\n    \"strategy\": \"DRIVER\",\n    \"includeAllPartitions\": true,\n    \"attachVehicleEvidence\": true,\n    \"vehicleEvidencePaddingMinutes\": 15\n  },\n  \"parameters\": {\n    \"significantDrivingMinutes\": 3,\n    \"minimumRestPeriodMinutes\": 720,\n    \"attachVehicleOnlyEvents\": true,\n    \"vehicleEvidencePaddingMinutes\": 15\n  }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/eventhub/runtime-processing/event-processing",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "eventhub",
            "runtime-processing",
            "event-processing"
          ]
        }
      }
    },
    {
      "name": "Execute tachograph profile - composite session all drivers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"profileKey\": \"tachograph-driver-esper-v1\",\n  \"scope\": {\n    \"compositeSessionId\": \"{{compositeSessionId}}\",\n    \"sourceFamilies\": [\n      \"TACHOGRAPH_FILE_SESSION\"\n    ],\n    \"occurredFrom\": \"2026-05-01T00:00:00Z\",\n    \"occurredTo\": \"2026-05-31T23:59:59Z\",\n    \"expandVehicleEvents\": true,\n    \"vehicleExpansionPaddingMinutes\": 15\n  },\n  \"partitioning\": {\n    \"strategy\": \"DRIVER\",\n    \"includeAllPartitions\": true,\n    \"attachVehicleEvidence\": true,\n    \"vehicleEvidencePaddingMinutes\": 15\n  },\n  \"parameters\": {\n    \"significantDrivingMinutes\": 3,\n    \"minimumRestPeriodMinutes\": 720,\n    \"attachVehicleOnlyEvents\": true,\n    \"vehicleEvidencePaddingMinutes\": 15\n  }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/eventhub/runtime-processing/event-processing",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "eventhub",
            "runtime-processing",
            "event-processing"
          ]
        }
      }
    },
    {
      "name": "Compatibility endpoint - tachograph esper processing",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"sessionIds\": [\n    \"{{sessionId}}\",\n    \"{{sessionId2}}\"\n  ],\n  \"sourceFamilies\": [\n    \"TACHOGRAPH_FILE_SESSION\"\n  ],\n  \"includeAllDrivers\": true,\n  \"occurredFrom\": \"2026-05-01T00:00:00Z\",\n  \"occurredTo\": \"2026-05-31T23:59:59Z\",\n  \"expandVehicleEvents\": true,\n  \"vehicleExpansionPaddingMinutes\": 15,\n  \"significantDrivingMinutes\": 3,\n  \"minimumRestPeriodMinutes\": 720\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/eventhub/runtime-processing/tachograph/esper-processing",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "eventhub",
            "runtime-processing",
            "tachograph",
            "esper-processing"
          ]
        }
      }
    }
  ]
}