Search and aggregate history events and return the aggregation result.
POST/graph/:graph_id/search/history/aggregate
Search and aggregate history events and return the aggregation result. 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
The identifier of the graph
Query Parameters
Possible values: [reported
, desired
, metadata
]
The name of the section used for all property paths. If not defined root is assumed.
Optional parameter to get all history events before the given timestamp
Optional parameter to get all history events after the given timestamp
Possible values: [node_created
, node_updated
, node_deleted
]
Optional parameter to get all history events with the given change type
The timestamp to use for the search. If not defined the latest version of the graph is used.
- 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
The result of the aggregation. The properties depend on the aggregation function.
- Schema
Schema
The result of the aggregation. The properties depend on the aggregation function.