跟踪属性 [英] Tracked Properties

查看:116
本文介绍了跟踪属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个逻辑应用程序,其中为每次运行创建了一个文件。应用程序在每次运行期间生成文件的名称。我想在我的应用程序的跟踪属性中获取该名称。我可以使用什么样的表达式?

解决方案

你可以结帐
this
blog for详细信息如果有帮助。


来自
document


要跟踪诊断数据中的输入或输出,可以添加跟踪属性到逻辑应用程序的JSON定义中的操作。跟踪属性只能跟踪单个操作的输入和输出,但您可以使用事件的相关属性与
关联运行中的操作。



跟踪一个或多个属性,将 trackedProperties 部分和所需的属性添加到操作定义中。例如,假设您要跟踪"订单ID"等数据。在您的遥测中:


" myAction" ;: {
" type":" http" ,
" inputs" ;: {
" uri":" http:// uri",
" headers":{
" Content-Type": "应用/ JSON"
},
" body":" @triggerBody()"
},
" trackedProperties" ;: {
" myActionHTTPStatusCode":" @action()['outputs'] ['statusCode']",
" myActionHTTPValue":" @action()['outputs'] ['body'] ['< content>']",
" transactionId":" @action()['inputs'] [ '体'] [ '<内容>']"
}
}





I'd created a logic app in which a file gets created for each run. The name of the file is generated by the app during each run. I'd like to get that name in the tracked properties of my app. What sort of an expression can I use for this?

解决方案

You can checkout this blog for details if that helps.

From the document:

To track inputs or outputs in diagnostics data, you can add tracked properties to actions in your logic app's JSON definition. Tracked properties can track only a single action's inputs and outputs, but you can use the correlation properties of events to correlate across actions in a run.

To track one or more properties, add the trackedProperties section and the properties you want to the action definition. For example, suppose you want to track data like an "order ID" in your telemetry:

"myAction": {
  "type": "http",
  "inputs": {
      "uri": "http://uri",
      "headers": {
          "Content-Type": "application/json"
      },
      "body": "@triggerBody()"
  },
  "trackedProperties": {
      "myActionHTTPStatusCode": "@action()['outputs']['statusCode']",
      "myActionHTTPValue": "@action()['outputs']['body']['<content>']",
      "transactionId": "@action()['inputs']['body']['<content>']"
  }
}



这篇关于跟踪属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆