准备数据基础
适用版本EdgeCloudEnterprise
Tier0 为应用建立数据基础:
- 接收应用业务数据
- 连接现有系统和设备的数据源
- 将数据集成到统一模型供应用使用。
数据基础概念
Section titled “数据基础概念”所有数据都建模到 命名空间 下的 数据表里,并按数据类型组织。
- 主要来自业务系统的关系数据存储在 Record 表中。
- 主要来自设备的时序数据存储在 Sample 表中。
flowchart TB namespace["命名空间"] --> table["数据表"] table --> record["Record 表<br/>关系数据"] table --> sample["Sample 表<br/>时序数据"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class table t0accent
业务数据可来自应用操作或外部系统;时序数据主要来自已连接的设备。
flowchart LR app["应用"] -->|"业务数据"| record["Record"] stream["数据流"] -->|"设备数据"| sample["Sample"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class record,sample t0accent
- 数据源:连接外部数据服务器,通常需要认证。
- 数据流:从服务器采集数据,按需处理,并存入 命名空间 数据表。
flowchart LR source["数据源<br/>连接服务器"] --> stream["数据流<br/>采集并处理"] classDef t0accent fill:#B2ED1D,stroke:#73B200,color:#171717 class source,stream t0accent
构建数据基础
Section titled “构建数据基础”-
在 Builder 中构建应用,让 Agent 在 命名空间 中准备业务数据表。
-
在 数据连接 > 数据源 中连接所需数据源并配置认证。
-
让 Agent 创建数据流,从已连接的数据源采集和处理数据,写入应用生成的 命名空间 数据表。
Enterprise 的数据基础构建步骤待补充。
Edge 的数据基础构建步骤待补充。