DataCollection Class

Defines data collection configuration for a Webservice.

Inheritance
builtins.object
DataCollection

Constructor

DataCollection(event_hub_enabled, storage_enabled)

Parameters

event_hub_enabled
bool
Required

Whether or not event hub is enabled for the Webservice

storage_enabled
bool
Required

Whether or not data collection storage is enabled for the Webservice

Variables

event_hub_enabled
bool

Indicates whether event hub is enabled for the Webservice.

storage_enabled
bool

Indicates whether data collection storage is enabled for the Webservice.

Methods

deserialize

Convert a JSON object into a DataCollection object.

serialize

Convert this DataCollection object into a JSON serialized dictionary.

deserialize

Convert a JSON object into a DataCollection object.

deserialize(payload_obj)

Parameters

payload_obj
dict
Required

A JSON object to convert to a DataCollection object.

Returns

The DataCollection representation of the provided JSON object.

Return type

serialize

Convert this DataCollection object into a JSON serialized dictionary.

serialize()

Returns

The JSON representation of this DataCollection.

Return type