Skip to main content

Metricaggregation

Properties

NameTypeDescriptionNotes
namestringThe name of the metric aggregate to be included in the result. If the metric aggregation is omitted, the resulting aggregation will be a count of the documents in the search results.[default to undefined]
type(optional) Metrictype[default to undefined]
fieldstringThe field the calculation is performed on. Prefix the field name with '@' to reference a nested object.[default to undefined]