I have a set of Nova and Dash devices that are sending their data through the hologram dashboard. I have a 2 routes set up:
Route 1: - “Forward_Data”- Forward my data from the devices to my REST service on my server.
Route 2: - “Check_In” - Tied to all devices by a tag, sense heartbeat, send a message to my REST service that a device has failed to report in for X time.
Currently, I’m using webhooks for both of these routes with a heartbeat set up on the “Check-In” to see when these devices are disconnected for more than an hour. I thought I would be able to send which <<device_ID>> failed over the webhook paired with the heartbeat, but all system variables are unusable in the webhook. Is there a way I can send a JSON POST to my rest service with the device_ID of the unit that went AWOL?
At first, I tried adding the following string to my heartbeat webhook:
{
"DeviceID":<<device.id>>,
"ErrorDate":<<recieved>>,
"ErrorMessage":"Device has been missing for 1 hr."
}
I determined that the heartbeat, since it was triggered by the hologram server, was not able to get the properties of the device that actually went missing nor was there a “message” tied to it to give it a received date.
EDIT: As Reuben suggested, I had tried this formatting but could not get it to display correctly due because I neglected to put it in a code block. I have updated the original post to reflect my attempted implementation.