{
  "format": "janus-integrations-v1",
  "definitions": [
    {
      "id": "counter",
      "content": {
        "name": "Line counter events",
        "kind": "http",
        "endpoint": "https://10.20.0.5:9443/janus/events",
        "method": "POST",
        "body": "{\"specversion\":\"1.0\",\"type\":\"janus.${trigger}\",\"id\":\"${eventId}\",\"source\":\"janus-smt-line2\",\"data\":{\"reel\":\"${reelId}\",\"bay\":\"${bay}\",\"quantity\":\"${quantity}\",\"sequence\":${sequence}}}",
        "headers": [
          {
            "name": "Content-Type",
            "value": "application/cloudevents+json"
          },
          {
            "name": "Webhook-Signature",
            "value": "",
            "secret": true
          }
        ],
        "inputs": [
          {
            "name": "eventId",
            "type": "text"
          },
          {
            "name": "trigger",
            "type": "text"
          },
          {
            "name": "reelId",
            "type": "text"
          },
          {
            "name": "partNumber",
            "type": "text"
          },
          {
            "name": "quantity",
            "type": "text"
          },
          {
            "name": "bay",
            "type": "text"
          },
          {
            "name": "at",
            "type": "text"
          },
          {
            "name": "sequence",
            "type": "running"
          }
        ],
        "mappings": [],
        "success": {
          "field": "status",
          "op": "starts-with",
          "value": "accepted"
        }
      }
    }
  ]
}