Skip to content

Commit

Permalink
Merge branch 'saved-objects-aggs' of github.com:XavierM/kibana into s…
Browse files Browse the repository at this point in the history
…aved-objects-aggs
  • Loading branch information
XavierM committed Nov 11, 2020
2 parents 433a71c + 4f667d4 commit 37ad64d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/server/saved_objects/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ export interface SavedObjectsFindOptions {
*/
defaultSearchOperator?: 'AND' | 'OR';
filter?: string | KueryNode;
/**
* Specify an Elasticsearch aggregation to perform. This alpha API only supports a limited set of aggregation types: metrics, bucket. Additional aggregation types can be contributed to Core.
* @alpha
* @example
* aggs = { type_count: { max: { field: 'dashboard.attributes.version' } } };
* SavedObjects.find({type: 'dashboard', aggs: '%7B%22type_count%22%3A%7B%22max%22%3A%7B%22field%22%3A%22dashboard.attributes.version%22%7D%7D%7D'})
*/
aggs?: SavedObjectsAggs;
namespaces?: string[];
/**
Expand Down

0 comments on commit 37ad64d

Please sign in to comment.