Search the aggregate function on the specified graph and return the aggregation result.
POST/graph/:graph_id/search/aggregate
Search and aggregate the graph and return the resulting aggregated data. A section can be defined (defaults to /
== root) to interpret relative property paths. Example: is(volume) and (reported.age>23d or desired.clean==true or metadata.version==2)
Request​
Path Parameters
graph_id stringrequired
The identifier of the graph
Example: resoto
Query Parameters
section string
Possible values: [reported
, desired
, metadata
]
The name of the section used for all property paths. If not defined root is assumed.
- text/plain
Body
The aggregation search to perform
string
Responses​
- 200
The result of this search in the defined format
- application/json
- application/x-ndjson
- Schema
Schema
property name* any
The result of the aggregation. The properties depend on the aggregation function.
- Schema
Schema
property name* any
The result of the aggregation. The properties depend on the aggregation function.
Loading...