HttpPushConfig

Configuration class for the HTTP_PUSH Data Connector type.

Usage

import disruptive as dt

# Create an HTTP_PUSH Data Connector.
dt.DataConnector.create_data_connector(
    project_id='<PROJECT_ID>',
    display_name='new-data-connector',
    config=dt.DataConnector.HttpPushConfig(
        url='https://some-endpoint-url.com',
        signature_secret='good-secret',
        headers={
           'name1': 'value1',
           'name2': 'value2',
        },
    ),
)

Class

class disruptive.DataConnector.HttpPushConfig(url=None, signature_secret=None, headers=None)

Type-specific configurations for the HTTP_PUSH Data Connector.

Variables:
  • url (str) – Endpoint URL towards which events are forwarded. Must be HTTPS.

  • signature_secret (str) – Secret with which each forwarded event is signed.

  • headers (dict[str, str]) – Dictionary of headers to include with each forwarded event.

__init__(url=None, signature_secret=None, headers=None)

Constructs the HttpPushConfig object.

Parameters:
  • url (str, optional) – Endpoint URL towards which events are forwarded. Must be HTTPS.

  • signature_secret (str, optional) – Secret with which each forwarded event is signed.

  • headers (dict[str, str], optional) – Dictionary of headers to include with each forwarded event.