Azure Time Series Insights 查询:如何在查询中表示 'cpu.thermal.average' 等变量?
Azure Time Series Insights query: how to denote a variable such as 'cpu.thermal.average' in the query?
我的系列'得到了值:cpu.thermal.average。我在 TSI 资源管理器中看到给定时间范围内的值。
通过执行以下请求,对于“temperatures”我只得到“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"
]
}
}
访问嵌套属性时,类型是必需的。
如果你使用$event.cpu.thermal.average.Double
应该可以
我的系列'得到了值:cpu.thermal.average。我在 TSI 资源管理器中看到给定时间范围内的值。
通过执行以下请求,对于“temperatures”我只得到“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"
]
}
}
访问嵌套属性时,类型是必需的。
如果你使用$event.cpu.thermal.average.Double