//Below subscription will capture when gate appointments get canceled
{
  "type": "subscribe",						// Required: Don't Change
  "channel": "/nsp",						// Required: Don't Change
  "transport": "ws", 						// Required: Don't Change
  "groupId": "CanceledGateAppointments",	// Required: GroupId is whatever you want it to be. No duplicates, so name accordingly.
  "filters": [								// Required: Your main filter array. All key:value pairs will go in here.
    {
    "eventName": "GateAppointment",			// Required: Your streamable event
        "changeFields": {					//Optional: Used to filter when certain fields on the eventName record changes. Read page 13 on Developer guide for more details
            "include": ["state"],			//Optional: list of events included
            "exclude": ["*"]				//Optional: list of events excluded
      },
    "operation": "update",					// Optional: Operation mode of the event. create/update/delete
    "filter": {								// Optional: filter payload tag
	"predicate": ["state=CANCEL"],
	  "fields":[							// Optional: Your filter attributes. These come from the payload. 	  
          "id",
		  "gkey",
          "state",
		  "truckLicenseNbr",
		  "transType",
		  "orderNbr",
          "gateId", 
          "trkcoGkey",
		  "trkcoId",
		  "trkcoScac",
		  "freightKind",
		  "lineId",
		  "ctrId",
		  "unitGkey",
		  "eqtypId",
		  "chassisId",
		  "chsIsOwners",
		  "requestedTime",
		  "timeSlotGkey", 
		  "created",
		  "creator",
		  "changed",
		  "changer"
            ]
        }
    }
  ]
}