Google Function integration
Google Function integrations enable you to trigger event-driven serverless compute functions when an event occurs in Ably.
Create a Google Function integration
To create a Google Function integration in your dashboard:
- Login and select the application you wish to integrate with a Google Function.
- Click the Integrations tab.
- Click the New Integration Rule button.
- Choose Webhook.
- Choose Google Functions.
- Configure the Google Function settings.
- Click Create.
You can also create a Google Function integration using the Control API.
Settings
The following settings are available when creating a Google Function integration:
| Setting | Description |
|---|---|
| Region | The region in which your Google Function is hosted. |
| Project ID | The ID of your Google Cloud Project. |
| Function | The name of your Google Function. |
| Headers | Allows the inclusion of additional information in key-value format. |
| Request Mode | Choose between Single Request or Batch Request. |
| Event types | Specifies the event types being sent to your Google Function. |
| Channel filter | Filters the source channels based on a regular expression. |
| Encoding | Specifies the encoding format of messages. Either JSON or MsgPack. |
| Enveloped | Checkbox to set whether messages should be enveloped or not. Enveloped is the default. Only available when Request Mode is set to Single. |
| Sign with key | Payloads will be signed with an API key so they can be validated by your servers. Only available when Request Mode is set to Batched. |