Google Cloud Functions
A sink that sends each event to a cloud function. Each event is json-encoded and sent as a POST request.
Configuration
[sink]type = "GcpCloudFunction"name = "oura"project_id = "XXX"region = "us-west-2"timeout = 30000error_policy = "Continue"authorization = "user:pass"
[sink.headers]extra_header_1 = "abc"extra_header_2 = "123"
[sink.retry_policy]max_retries = 30backoff_unit = 5000backoff_factor = 2max_backoff = 100000
Section: sink
type
: the literal valueGcpCloudFunction
name
: the name of the cloud functionproject_id
: the google cloud project id that the function exists inregion
: the region that the function was created intimeout
(optional): the timeout value for the HTTP response in milliseconds. Default value is30000
.authorization
(optional): value to add as the ‘Authorization’ HTTP headerheaders
(optional): key-value map of extra headers to pass in each HTTP callerror_policy
(optional): eitherContinue
orExit
. Default value isExit
.- retry_policy