Test a Destination

Send a test event directly to a destination to ensure proper setup.

B
Written by Ben Mills
Updated over a week ago

This tutorial shows how to test your DynamoDB destination, and similar steps can be followed when testing Queues, Bigtable and Webhook.

After logging in to the Dashboard, click the DynamoDB navigation item on the left.


Choose a destination name that you are interested in.

Next, on the details page, click the gray Test Destination button and confirm your action in the modal that pops up.

About the Test Message

When testing a queue, the contents of the test event will include:

  • timestamp (string) - An ISO 8601-formatted time stamp reflecting when the test event was generated.

  • type (string) - The type of message. The value will be bbTestMessage.

Example:

{  
  "timestamp": "2019-09-18T13:12:11.000Z",
  "type": "bbTestMessage"
}


When testing a DynamoDB table, Google Bigtable or Webhook, the contents of the test event will include the fields above, and the additional fields that appear in every platform event sent to these destinations, regardless of type:

  • timestamp (string) - An ISO 8601-formatted time stamp reflecting when the test event was generated.

  • type  (string) - The type of message. The value will be bbTestMessage.

  • deviceId (string) - A dummy device serial number. The value will be 0000000000.

  • triggeredRule (string) - A dummy rule name, since the test event was not subject to your rules. The value will be bbTestMessage.

  • eventId (string) - A unique identifier of the event in the form of a UUID.

  • messageId (string) - A dummy unique identifier of the packet that an event comes in, in the form of a UUID.

  • receivedAt (string) - A dummy ISO 8601-formatted time stamp reflecting when the test event was ingested. The value will be identical to timestamp .

  • deliveredAt (string) - An ISO 8601-formatted time stamp reflecting when the event was delivered to the destination.

  • tags (array[strings]) - A dummy array of tags that the device would be tagged with.

Example

{
  "deliveredAt": "2019-09-18T16:55:24.221Z",
  "deviceId": "0000000000",
  "eventId": "1b5a37d0-da35-11e9-acf7-3f907d1c298c",
  "messageId": "f44979f4-8b30-419c-9cca-4b0f4e7e692e",
  "receivedAt": "2019-09-18T16:55:23.853Z",
  "tags": [],
  "timestamp": "2019-09-18T16:55:23.851Z",
  "triggeredRule": "bbTestMessage",
  "type": "bbTestMessage"
}

If you have questions about how to test your destination, send us a chat message! 👍 


Did this answer your question?