下列文章詳細說明一旦 Eventstream 同步至 GitHub 或 Azure Devops 存放庫的檔案結構。
資料夾結構
一旦工作區同步至存放庫,您會看到工作區的最上層資料夾,以及已同步處理之每個項目的子資料夾。 每個子資料夾都會格式化 為項目名稱。項目類型
在 eventstream 的資料夾內,您會看到下列檔案:
- 平台:定義網狀架構平臺值,例如顯示名稱和描述。
- 屬性:定義專案特定值。
以下是資料夾結構的範例:
存放庫
- 工作區 A
- Item_A.Eventstream
- 平台。
- EventstreamProperties.json
- Item_A.Eventstream
- 工作區 B
- Item_C.Eventstream
- 平台。
- EventstreamProperties.json
- Item_C.Eventstream
Eventstream 檔案
下列檔案包含在 eventstream 資料夾中:
平台
檔案會使用下列架構來定義事件資料流:
{ "$schema": "https://developer.microsoft.com/json-schemas/fabric/gitIntegration/platformProperties/2.0.0/schema.json", "metadata": { "type": "Eventstream", "displayName": "", "description": "" }, "config": { "version": "2.0", "logicalId": "" } }EventstreamProperties.json
檔案可讓您設定事件數據流專案的平臺層級設定。 以下是範例檔案:
{ "sources": [ { "name": "AzureEventHubSource", "type": "AzureEventHub", "properties": { "dataConnectionId": "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb", "consumerGroupName": "$Default", "inputSerialization": { "type": "Json", "properties": { "encoding": "UTF8" } } } }, { "name": "AzureIoTHubSource", "type": "AzureIoTHub", "properties": { "dataConnectionId": "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb", "consumerGroupName": "$Default", "inputSerialization": { "type": "Json", "properties": { "encoding": "UTF8" } } } } ], "destinations": [ { "name": "CustomEndpointDestination", "type": "CustomEndpoint", "properties": {}, "inputNodes": [ { "name": "myEventstream-stream" } ] }, { "name": "LakehouseDestination", "type": "Lakehouse", "properties": { "workspaceId": "00000000-0000-0000-0000-000000000000", "itemId": "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb", "schema": "dbo", "deltaTable": "deltaTable", "minimumRows": 100000, "maximumDurationInSeconds": 120, "inputSerialization": { "type": "Json", "properties": { "encoding": "UTF8" } } }, "inputNodes": [ { "name": "myEventstream-stream" } ] } ], "streams": [ { "name": "myEventstream-stream", "type": "DefaultStream", "properties": {}, "inputNodes": [ { "name": "sourceName" } ] }, { "name": "DerivedStreamName", "type": "DerivedStream", "properties": { "inputSerialization": { "type": "Json", "properties": { "encoding": "UTF8" } } }, "inputNodes": [ { "name": "FilterName" } ] } ], "operators": [ { "name": "FilterName", "type": "Filter", "inputNodes": [ { "name": "myEventstream-stream" } ], "properties": { "conditions": [ { "column": { "node": null, "columnName": "BikepointID", "columnPath": null, "expressionType": "ColumnReference" }, "operatorType": "NotEquals", "value": { "dataType": "Nvarchar(max)", "value": "0", "expressionType": "Literal" } } ] } } ], "compatibilityLevel": "1.0" }
如需具有所有類型的來源、目的地和運算子的完整範例,請參閱 eventstream-definition.json。