azure.eventgrid package¶
Module contents¶
-
class
azure.eventgrid.
EventGridClient
(credentials)[source]¶ Bases:
msrest.service_client.SDKClient
EventGrid Client
- Variables
config (EventGridClientConfiguration) – Configuration for client.
- Parameters
credentials (None) – Subscription credentials which uniquely identify client subscription.
-
publish_events
(topic_hostname, events, custom_headers=None, raw=False, **operation_config)[source]¶ Publishes a batch of events to an Azure Event Grid topic.
- Parameters
topic_hostname (str) – The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net
events (list[EventGridEvent]) – An array of events to be published to Event Grid.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
None or ClientRawResponse if raw=true
- Return type
None or ClientRawResponse
- Raises
HttpOperationError