Skip to main content

BucketAggregation

The bucket to group the results of the aggregation query by.

Properties

NameTypeDescriptionNotes
namestrThe name of the bucket aggregate to be included in the result.[required]
typeBucketType[optional] [default to BucketType.TERMS]
var_fieldstrThe field to bucket on. Prefix the field name with '@' to reference a nested object.[required]
sizeintMaximum number of buckets to include.[optional]
min_doc_countintMinimum number of documents a bucket should have.[optional]
}

Example

from sailpoint.v2024.models.bucket_aggregation import BucketAggregation

bucket_aggregation = BucketAggregation(
name='Identity Locations',
type='TERMS',
var_field='attributes.city',
size=100,
min_doc_count=2
)

[Back to top]