在 Azure 聚合上使用多个属性执行分组操作 API

Perform Group By Operation with multiple attributes on Azure Aggregates API

我们的问题是,如何对多个属性进行group by操作? 例如,假设我们有一个波纹管事件模式:

{
    {
        "name": "id",
        "type": "String"
    },
    {
        "name": "last_updated_at",
        "type": "Double"
    },
    {
        "name": "location_cell",
        "type": "String"
    }
}

我们想对上述所有属性(字段)进行分组操作,并得到一个结果。

我们能否仅使用聚合 API 而不对架构进行任何更改来满足此要求?如果是uniqueValues如何设置多个值? 或者我们是否需要将一个新的属性(字段)添加到模式中,并使用上述所有字段的字符串连接?

可以,支持的最大深度为 5,即您最多可以按 5 个属性进行分组。

https://docs.microsoft.com/en-us/rest/api/time-series-insights/ga-query-api