0

我的系列得到了价值:cpu.thermal.average。我在给定的时间范围内看到了 TSI 资源管理器中的值。

通过执行以下请求,对于“温度”,我只会得到“null”。我不确定如何编写 $event.cpu.thermal.average 等价物。任何的想法?

    { 
        "aggregateSeries": {
        "timeSeriesId": [
          "MySeries",
        ],
        "searchSpan": {
          "from": "2021-03-10T07:00:00Z",
          "to": "2021-03-10T20:00:50Z"
        },
        "interval": "PT3600M",
        "filter": null,
        "inlineVariables": {
          "latitudes": {
            "kind": "numeric",
            "value": {
              "tsx": "$event.latitude"
            },
            "filter": null,
            "aggregation": {
              "tsx": "avg($value)"
            }
          },
          "temperatures": {
            "kind": "numeric",
            "value": {
              "tsx": "$event['cpu.thermal.average']"
            },
            "filter": null,
            "aggregation": {
              "tsx": "avg($value)"
            }
          }
        },
        "projectedVariables": [
          "latitudes",
          "temperatures"
        ]
        }
    }

在此处输入图像描述

4

1 回答 1

0

从这里:https ://docs.microsoft.com/en-us/rest/api/time-series-insights/reference-time-series-expression-syntax#value-expressions

访问嵌套属性时,类型是必需的。

如果你使用它应该可以工作$event.cpu.thermal.average.Double

于 2021-04-07T20:07:19.207 回答