Azure 时序见解第 2 代中的数据建模Data modeling in Azure Time Series Insights Gen2

本文介绍如何使用 Azure 时序见解第 2 代中的时序模型。This article describes how to work with Time Series Model in Azure Time Series Insights Gen2. 它详细介绍了几个常见数据方案。It details several common data scenarios.

提示

InstancesInstances

Azure 时序见解资源管理器在浏览器中支持实例“创建”、“读取”、“更新”和“删除”操作****************。The Azure Time Series Insights explorer supports Instance CREATE, READ, UPDATE, and DELETE operations within the browser.

若要开始,请从 Azure 时序见解资源管理器“分析”视图中选择“模型”视图 。To begin, select the Model view from the Azure Time Series Insights explorer Analyze view.

创建单个实例Create a single instance

  1. 转到“时序模型”选择器面板,并从菜单中选择“实例”****。Go to the Time Series Model selector panel, and select Instances from the menu. 随即将显示与所选 Azure 时序见解环境关联的所有实例。All instances associated with your selected Azure Time Series Insights environment will be displayed.

    首先通过选择实例来创建单个实例。Create a single instance by first selecting Instances.

  2. 选择“+ 添加” 。Select + Add.

    通过选择“+ 添加”按钮添加一个实例。Add an instance by selecting the + Add button.

  3. 输入实例详细信息,选择类型和层次结构关联,然后选择“创建”****。Enter the instance details, select the type and hierarchy association, and select Create.

批量上传一个或多个实例Bulk upload one or more instances

提示

可以以 JSON 格式将实例保存到桌面。然后,可以通过以下步骤上传下载的 JSON 文件。You may save your instances to your desktop in JSON.The downloaded JSON file can then be uploaded through the following steps.

  1. 选择“上传 JSON”。****Select Upload JSON.

  2. 选择包含实例有效负载的文件。Select the file that contains the instances payload.

    通过 JSON 批量上传实例。Bulk upload instances through JSON.

  3. 选择“上传”。Select Upload.

编辑单个实例Edit a single instance

  1. 选择该实例,然后选择“编辑”或“铅笔图标”********。Select the instance, and select the edit or pencil icon.

  2. 进行所需的更改,然后选择“保存”。****Make the required changes, and select Save.

    编辑单个实例。Edit a single instance.

删除实例Delete an instance

  1. 选择该实例,然后选择“删除”或“垃圾桶图标”********。Select the instance, and select the delete or waste bin icon.

    通过选择“删除”来删除实例。Delete an instance by selecting Delete.

  2. 通过选择“删除”来确认删除****。Confirm deletion by selecting Delete.

备注

实例必须成功通过字段验证检查才能删除。An instance must successfully pass a field validation check to be deleted.

层次结构Hierarchies

Azure 时序见解资源管理器在浏览器中支持层次结构“创建”、“读取”、“更新”和“删除”操作****************。The Azure Time Series Insights explorer supports Hierarchy CREATE, READ, UPDATE, and DELETE operations within the browser.

若要开始,请从 Azure 时序见解资源管理器“分析”视图中选择“模型”视图 。To begin, select the Model view from the Azure Time Series Insights explorer Analyze view.

创建单个层次结构Create a single hierarchy

  1. 转到“时序模型”选择器面板,并从菜单中选择“层次结构”****。Go to the Time Series Model selector panel, and select Hierarchies from the menu. 随即将显示与所选 Azure 时序见解环境关联的所有层次结构。All hierarchies associated with your selected Azure Time Series Insights environment will be displayed.

    通过窗格创建层次结构。Create a hierarchy through the pane.

  2. 选择“+ 添加” 。Select + Add.

    层次结构的“+ 添加”按钮。Hierarchy + Add button.

  3. 在右窗格中选择“+ 添加级别”****。Select + Add level in the right pane.

    向层次结构添加级别。Add a level to the hierarchy.

  4. 输入层次结构详细信息,然后选择“保存”****。Enter the hierarchy details, and select Save.

    指定层次结构详细信息。Specify hierarchy details.

批量上传一个或多个层次结构Bulk upload one or more hierarchies

提示

可以以 JSON 格式将层次结构保存到桌面。然后,可以通过以下步骤上传下载的 JSON 文件。You may save your hierarchies to your desktop in JSON.The downloaded JSON file can then be uploaded through the following steps.

  1. 选择“上传 JSON”。****Select Upload JSON.

  2. 选择包含层次结构有效负载的文件。Select the file that contains the hierarchy payload.

  3. 选择“上传”。Select Upload.

    适用于批量上传层次结构的选择。Selections for bulk upload of hierarchies.

编辑单个层次结构Edit a single hierarchy

  1. 选择该层次结构,然后选择“编辑”或“铅笔图标”********。Select the hierarchy, and select the edit or pencil icon.

  2. 进行所需的更改,然后选择“保存”。****Make the required changes, and select Save.

    适用于编辑单个层次结构的选择。Selections for editing a single hierarchy.

删除层次结构Delete a hierarchy

  1. 选择该层次结构,然后选择“删除”或“垃圾桶图标”********。Select the hierarchy, and select the delete or waste bin icon.

    通过选择“删除”按钮删除层次结构。Delete a hierarchy by selecting the Delete button.

  2. 通过选择“删除”来确认删除****。Confirm deletion by selecting Delete.

类型Types

Azure 时序见解资源管理器在浏览器中支持类型“创建”、“读取”、“更新”和“删除”操作****************。The Azure Time Series Insights explorer supports Type CREATE, READ, UPDATE, and DELETE operations within the browser.

若要开始,请从 Azure 时序见解资源管理器“分析”视图中选择“模型”视图 。To begin, select the Model view from the Azure Time Series Insights explorer Analyze view.

创建单个类型Create a single type

  1. 转到“时序模型”选择器面板,并从菜单中选择“类型”****。Go to the Time Series Model selector panel, and select Types from the menu. 随即将显示与所选 Azure 时序见解环境关联的所有类型。All types associated with your selected Azure Time Series Insights environment will be displayed.

    时序模型类型窗格。Time Series Model types pane.

  2. 选择“+ 添加”以显示“添加新类型”弹出模型。********Select + Add to display the Add a new type popup modal.

  3. 输入类型的属性和变量。Enter properties and variables for your type. 输入后,选择“保存”****。Once entered, select Save.

    用于添加类型的配置设置。Configuration settings to add a type.

批量上传一个或多个类型Bulk upload one or more types

提示

可以以 JSON 格式将类型保存到桌面。然后,可以通过以下步骤上传下载的 JSON 文件。You may save your types to your desktop in JSON.The downloaded JSON file can then be uploaded through the following steps.

  1. 选择“上传 JSON”。****Select Upload JSON.

  2. 选择包含类型有效负载的文件。Select the file that contains the type payload.

  3. 选择“上传”。Select Upload.

    批量类型上传选项。Bulk types uploading options.

编辑单个类型Edit a single type

  1. 选择该类型,然后选择“编辑”或“铅笔图标”********。Select the type, and select the edit or pencil icon.

  2. 进行所需的更改,然后选择“保存”。****Make the required changes, and select Save.

    在窗格中编辑类型。Edit a type in the pane.

删除类型Delete a type

  1. 选择该实例,然后选择“删除”或“垃圾桶图标”********。Select the type, and select the delete or waste bin icon.

    通过选择“删除”来删除类型。Delete a type by selecting Delete.

  2. 通过选择“删除”来确认删除****。Confirm deletion by selecting Delete.

后续步骤Next steps