我有一个数据工厂,该工厂根据存储Blob事件触发。在触发的事件中,我看到两个属性TriggerTime和EventPayload。由于需要阅读与Storage Blob相关的信息,因此我试图在数据工厂中处理EventPayload。我想从数据标签访问“ url”之类的属性。
样本有效负载如下:
{
"topic":"/subscriptions/7xxxxe5bbccccc85/resourceGroups/das00/providers/Microsoft.Storage/storageAccounts/datxxxxxx61",
"subject":"/blobServices/default/containers/raw/blobs/sample.parquet",
"eventType":"Microsoft.Storage.BlobCreated",
"id":"a1c320d7-501f-0047-362c-xxxxxxxxxxxx",
"data":{
"api":"FlushWithClose",
"requestId":"5010",
"eTag":"0x8D82743B5D86E72",
"contentType":"application/octet-stream",
"contentLength":203665463,
"contentOffset":0,
"blobType":"BlockBlob",
"url":"https://mystorage.dfs.core.windows.net/raw/sample.parquet",
"sequencer":"000000000000000000000000000066f10000000000000232",
"storageDiagnostics":{
"batchId":"89308627-6e28-xxxxx-96e2-xxxxxx"
}
},
"dataVersion":"3",
"metadataVersion":"1",
"eventTime":"2020-07-13T15:45:04.0076557Z"
}
在数据工厂中是否有处理EventPayload的捷径?例如,可以使用数据工厂中的@triggerBody()访问事件的文件名和文件夹路径。这是否需要像Azure函数这样的自定义代码?