DataCollection 类

定义 Webservice 的数据收集配置。

初始化 DataCollection 对象。

继承
builtins.object
DataCollection

构造函数

DataCollection(event_hub_enabled, storage_enabled)

参数

event_hub_enabled
bool
必需

是否为 Web 服务启用了事件中心

storage_enabled
bool
必需

是否为 Web 服务启用了数据收集存储

event_hub_enabled
bool
必需

是否为 Web 服务启用了事件中心

storage_enabled
bool
必需

是否为 Web 服务启用了数据收集存储

变量

event_hub_enabled
bool

指示是否为 Webservice 启用了事件中心。

storage_enabled
bool

指示是否为 Webservice 启用了数据收集存储。

方法

deserialize

将 JSON 对象转换为 DataCollection 对象。

serialize

将此 DataCollection 对象转换为 JSON 串行化字典。

deserialize

将 JSON 对象转换为 DataCollection 对象。

static deserialize(payload_obj)

参数

payload_obj
dict
必需

要转换为 DataCollection 对象的 JSON 对象。

返回

提供的 JSON 对象的 DataCollection 表示形式。

返回类型

serialize

将此 DataCollection 对象转换为 JSON 串行化字典。

serialize()

返回

此 DataCollection 的 JSON 表示形式。

返回类型