发布到 Azure 时序见解时,环境不支持 API 'metadata'

API 'metadata' is not supported for environment while posting to Azure Time Series Insight

上下文:我正在尝试 post json 内容到 Azure Time Series Insight,通过 postman 和获取,

{
    "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"
            ]
        }
    ]
}

我的 payload 正在尝试 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
    }
}

URL : https://xxxxxxxx-1797-xxxx-82xx-639xxxx51af8.env.timeseries.azure.com/metadata?api-version=2016-12-12

遗憾的是,/metadata 端点仅适用于 Azure Time Series Insights Gen1

如果您尝试访问 Azure Time Series Insights Gen2 环境的 /metadata 端点,预计会得到这样的响应:

{
    "error": {
        "code": "InvalidInput",
        "message": "API 'metadata' is not supported for environment 'XX'."
    }
}