UiPath Documentation
activities
latest
false
IT 自动化活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

访问性能触发器事件信息

性能触发器事件数据可通过触发器作用域活动以及性能触发器参数提供的方法使用。

After a performance trigger executes, you have the option to access the event data through the Actions block of the Trigger Scope activity, by defining an argument in the ProcessPerformanceTriggerArgs field.

性能触发器参数

此类参数可帮助您访问触发器事件数据,因为它具有三种预定义方法:

  • .TriggerName - returns the trigger name, the one set in the DisplayName field;
  • .TriggerType - 返回桌面触发器类型,在本例中为 UiPath.DesktopTriggers.Activities.ProcessPerformanceTrigger
  • .result - 返回 JSON 字符串,其中显示事件信息,例如资源消耗百分比、计算机 ID 或监控开始时间。有关更多详细信息,请参阅解释性能触发器事件结果

访问触发器事件数据

  1. In the Actions block, set a name for the trigger argument in the ProcessPerformanceTriggerArgs field. For example, "args".

  2. 要检索触发器类型,请在所选活动中将 TriggerType 方法应用于先前定义的参数。 例如args.TriggerType

  3. 要检索触发器名称,请将 TriggerName 方法应用于所选活动中先前定义的参数。 例如args.TriggerName

  4. 要检索完整的触发器事件信息,请将 result 方法应用于所选活动中先前定义的参数。 例如args.result

  • 性能触发器参数
  • 访问触发器事件数据

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新