【问题标题】:How to send the results of a newman report to Datadog?如何将 newman 报告的结果发送给 Datadog?
【发布时间】:2021-11-27 07:29:13
【问题描述】:

我已经构建了一个连接到 Datadog 的小型微服务,即使用 Postman 对该服务的 API 调用显示在 Datadog 中。我已经使用 -

为该服务生成了 newman 报告
newman run collection.json --reporters cli,json --reporter-json-export output.json

现在,我希望我的 newman 报告 output.json 的内容显示在 Datadog 中。任何有关如何做到这一点的帮助/想法将不胜感激。

【问题讨论】:

    标签: postman datadog postman-collection-runner newman


    【解决方案1】:

    请执行以下操作,

    1. 请使用您的 API 密钥构建 API 调用 - 应该将数据发布到 dataDog - ref here
    2. 然后编写单独的nodejs脚本来调用这个带有附件的api。
    3. 在执行 newman 后调用您的脚本

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-13
      • 2021-02-27
      • 1970-01-01
      • 2022-01-02
      • 2021-12-27
      • 2018-07-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多