EventHubConfig Class

A container class for Event Hub properties.

Inheritance
builtins.object
EventHubConfig

Constructor

EventHubConfig(sb_name, eh_name, policy, sas_key, consumer_group='$default', namespace_suffix='servicebus.windows.net')

Parameters

sb_name
str
Required

The EventHub (ServiceBus) namespace.

eh_name
str
Required

The EventHub name.

policy
str
Required

The SAS policy name.

sas_key
str
Required

The SAS access key.

consumer_group
str
default value: $default

The EventHub consumer group to receive from. The default value is '$default'.

namespace_suffix
str
default value: servicebus.windows.net

The ServiceBus namespace URL suffix. The default value is 'servicebus.windows.net'.

Methods

get_client_address

Returns an auth token dictionary for making calls to eventhub REST API.

get_rest_token

Returns an auth token for making calls to eventhub REST API.

get_client_address

Returns an auth token dictionary for making calls to eventhub REST API.

get_client_address()

Return type

str

get_rest_token

Returns an auth token for making calls to eventhub REST API.

get_rest_token()

Return type

str