上报采集测试结果
POST
https://api.flashcat.cloud/v1/n9e-plus/collects-tryrun-task-report
最后修改时间:2024-06-18 10:05:08
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/v1/n9e-plus/collects-tryrun-task-report' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '[
{
"uuid": "280a60f7-1824-42b1-a5fc-86a91c90d9a1",
"ident": "web-debug",
"data": [
{
"metric": "http_response_cert_expire_timestamp",
"tags": "map[agent_hostname:web-debug cert_name:baidu.com env:test method:GET target:https://www.baidu.com]",
"value": 0,
"ts": 1718627103477
},
{
"metric": "http_response_response_time",
"tags": "map[agent_hostname:web-debug env:test method:GET target:https://www.baidu.com]",
"value": 0.024935985,
"ts": 1718627103477
},
{
"metric": "http_response_response_code",
"tags": "map[agent_hostname:web-debug env:test method:GET target:https://www.baidu.com]",
"value": 0.024935985,
"ts": 1718627103477
},
{
"metric": "http_response_result_code",
"tags": "map[agent_hostname:web-debug env:test method:GET target:https://www.baidu.com]",
"value": 0.024935985,
"ts": 1718627103477
}
],
"log": ""
}
]'
响应示例响应示例
{
"err": ""
}
请求参数
Body 参数application/json