There are two types of data streams in Real-Time hub: Stream and Table. 本文介绍如何在实时中心分析流和表。
Analyze streams
要分析其父级为事件流的流,请执行以下步骤:
- 在实时中心打开与数据流关联的事件流。
- 将 Eventhouse 目标添加到 Eventstream,以将数据发送到 KQL 表。
- 打开 KQL 数据库,并针对 KQL 表运行查询。
以下各节提供了有关这些步骤的更多详细信息。
Open eventstream
In Real-Time hub, when you get events from the supported sources, an eventstream is created for you. 可以通过以下方法之一打开事件流:
“连接数据源”向导:
创建此流后,在“查看 + 连接”页上,可以看到“打开 Eventstream”链接,选择以在编辑器中打开与流关联的 Eventstream。
实时首页的“最近流式处理数据”部分 Move the mouse over a stream whose parent is an eventstream, and select the Open link, or select ... (ellipsis), and then select Open eventstream.
Detail page:
选择其父级为事件流的流以查看流详细信息页。 On this page, select Open eventstream link on the ribbon.
将 Eventhouse 目标添加到 Eventstream
在编辑器中打开 Eventhouse 后,可以添加 Eventhouse 目标。 将数据输出到 Eventhouse 中 KQL 数据库中的 KQL 表时,可以针对 KQL 表运行查询来分析数据。
After you open the eventstream, select Edit on the ribbon to enter into the edit mode.
添加 KQL 数据库目标。 在功能区上选择“转换事件或添加目标”磁贴或“转换事件”,然后选择“KQL 数据库”。
按照将 KQL 数据库目标添加到事件流中的说明配置 KQL 数据库目标。
等待数据流式处理到 KQL 目标中。 验证流式处理到画布上的 KQL 数据库的状态。
Select the destination tile and switch to the Details tab in the bottom pane.
Select Open item to open the destination KQL database.
现在,针对目标 KQL 表运行查询,以分析流式处理到 KQL 数据库中的数据。
Analyze tables
你可以通过使用以下方法之一打开与表关联的 KQL 数据库:
在实时中心页面的“最近流式处理数据”部分中,将鼠标移到表类型的数据流上,然后选择“打开”链接,或者选择...(省略号),然后选择“打开 KQL 数据库”。
在实时中心页的“最近流式处理数据”部分,点击一个 KQL 表以查看表详情页。 在此页面上,可以选择功能区上的“打开 KQL 数据库”链接。
打开表后,你可以针对数据库中的表运行查询。