简体   繁体   English

从ADF中的管道提取GUID和其他属性?

[英]extract GUID and other attributes from pipeline within ADF?

I'm wanting to create my own log file to store various attributes each time a pipeline is executed. 我想创建自己的日志文件,以在每次执行管道时存储各种属性。 How do I add a step to my pipeline that records the pipeline GUID, timestamp for starting the process, timestamp for completion, completion status, successful record counts, error record counts, etc.? 如何在管道中添加记录管道GUID,启动进程的时间戳,完成时间戳,完成状态,成功记录计数,错误记录计数等的步骤?

I'm thinking I'd want need an output for different statuses but I'm not sure what to actually specify for the code to capture the different elements. 我想我需要一个用于不同状态的输出,但是我不确定为捕获不同元素的代码实际指定什么。

You are going to want to use the PowerShell cmdlet Get-AzureRmDataFactoryV2ActivityRun and direct the output to the desired logging mechanism. 您将要使用PowerShell cmdlet Get-AzureRmDataFactoryV2ActivityRun并将输出定向到所需的日志记录机制。

Example Output: 示例输出:

 ResourceGroupName : ADF DataFactoryName : WikiADF ActivityName : MyWebActivity PipelineRunId : f288712d-fb08-4cb8-96ef-82d3b9b30621 PipelineName : DPWikisample Input : {method, url, headers, body...} Output : {operationstatus} LinkedServiceName : ActivityRunStart : 9/14/2017 12:20:57 AM ActivityRunEnd : 9/14/2017 12:21:00 AM DurationInMs : 2768 Status : Succeeded Error : {errorCode, message, failureType, target} 

For ADFv1, the applicable cmdlet is: Get-AzureRmDataFactoryRun 对于ADFv1,适用的cmdlet为: Get-AzureRmDataFactoryRun

我想出了如何通过在管道中设置变量来做我现在需要做的事情,因为我没有从前一个用户那里得到任何其他反馈

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM