Connections
webhook
Commentary
added in 0.0.5
Sends events to a webhook, sending data with a POST
method and a JSON encoded body.
Examples
Configuring the connection
This connection takes no further configuration. All parameterization takes place in the generator.
{
"connections": {
"saas-webhook": {
"kind": "webhook"
}
}
}
Generating data
Use url
to specify the route to send data
to.
{
"generators": [
{
"url": "http://my-url.com/route",
"data": {
"latency": {
"_gen": "normalDistribution",
"mean": 100,
"sd": 10,
"decimals": 1
}
}
}
],
"connections": {
"saas-webhook": {
"kind": "webhook"
}
}
}
Specification
Connection JSON schema
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "webhook"
}
}
}