bucketsMeasures()
Home > @gooddata/sdk-model > bucketsMeasures
bucketsMeasures() function
Gets all measures matching the provided predicate from a list of buckets.
Signature:
export declare function bucketsMeasures(buckets: IBucket[], predicate?: MeasurePredicate): IMeasure[];
Parameters
Parameter | Type | Description |
---|---|---|
buckets | IBucket[] | list of buckets to get measures from |
predicate | MeasurePredicate | (Optional) measure predicate; anyMeasure is default |
Returns:
IMeasure[]
empty list if none match
Remarks
If no predicate is provided, then the function defaults to anyMeasure predicate - meaning all measures will be returned.