From 4f667d48233a63281ec2e814f3cbbbd0f2e79573 Mon Sep 17 00:00:00 2001 From: Xavier Mouligneau <189600+XavierM@users.noreply.github.com> Date: Wed, 11 Nov 2020 11:38:58 -0500 Subject: [PATCH] Update src/core/server/saved_objects/types.ts Co-authored-by: Rudolf Meijering --- src/core/server/saved_objects/types.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/server/saved_objects/types.ts b/src/core/server/saved_objects/types.ts index 5712c0d6fcab5..dda5f5d323edd 100644 --- a/src/core/server/saved_objects/types.ts +++ b/src/core/server/saved_objects/types.ts @@ -109,6 +109,11 @@ 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 // Can you add an code example of how to use the API that shows an aggregation on a root property and an type attribute + */ aggs?: SavedObjectAggs; namespaces?: string[]; /**