上下文:我正在尝试通过邮递员将 json 内容发布到 Azure Time Series Insight 并获取,
{
"error": {
"code": "InvalidInput",
"message": "API 'metadata' is not supported for environment 'xxxxxxxx-1797-xxxx-82xx-639xxxx51af8'."
}
}
在进行“ GET ”调用时,我收到了响应,
{
"environments": [
{
"displayName": "perf_lab",
"environmentId": "xxxxxxxx-1797-xxxx-82xx-639xxxx51af8",
"environmentFqdn": "xxxxxxxx-1797-xxxx-82xx-639xxxx51af8.env.timeseries.azure.com",
"resourceId": "/subscriptions/xxxxxxxx-1797-xxxx-82xx-639xxxx51af8/resourcegroups/Rg01/providers/Microsoft.TimeSeriesInsights/environments/perf_lab",
"features": [
"TimeSeriesQuery",
"TimeSeriesModel",
"ColdStore",
"WarmStore"
],
"roles": [
"Reader",
"Contributor"
]
}
]
}
我的有效载荷尝试 for POST调用,
{
"test_details": [
{
"project_name": "APIM"
},
{
"test_Name": "SimpleLoadTest"
},
{
"test_id": "LoadTest01"
},
{
"test_executer": "Administrator"
}
],
"response_Details": [
{
"requestName": "JSR223 Sampler",
"status": "Success",
"responseTime": 1616,
"responsecode": "200",
"sentBytes": 0,
"receivedBytes": 0,
"responseMessage": "OK",
"samplecount": 1,
"errorCount": 0,
"time": 1596682980831
}
],
"thread_Details": {
"number_vusers": 1
}
}
网址:https ://xxxxxxxx-1797-xxxx-82xx-639xxxx51af8.env.timeseries.azure.com/metadata?api-version=2016-12-12