Event Gateway Connector enables importing messages (events) from different, popular message queues into Event Gateway. Currently supported technologies: AWS Kinesis, AMQP, AWS CloudTrail.
Source is a implementation of message queue client that connects to the queue (based on configuration stored in Connection) and fetches messages. Currently implemented sources can be found in sources
folder.
Connection is a configuration describing a source (address, credentials) and target Event Gateway (e.g. URL, path, event type). Connections are managed by Config API.
Config API allows creating connections that Connector will use to fetch data from.
GET /v1/spaces/<space name>/connections
Payload:
{
"connections": [{
"target": "http://localhost:4001",
"eventType": "user.created",
"type": "awskinesis",
"source": {
"streamName": "test",
"region": "us-east-1"
}
}]
}
POST /v1/spaces/<space name>/connections
Payload:
{
"target": "http://localhost:4001",
"eventType": "user.created",
"type": "awskinesis",
"source": {
"streamName": "test",
"region": "us-east-1"
}
}
PUT /v1/spaces/<space name>/connections/<connection ID>
Payload:
{
"target": "http://localhost:4001",
"eventType": "user.created",
"type": "awskinesis",
"source": {
"streamName": "test",
"region": "us-east-1"
}
}
DELETE /v1/spaces/<space name>/connections/<connection ID>