bucketMeasures()
Home > @gooddata/sdk-model > bucketMeasures
bucketMeasures() function
Gets all measures matching the provided predicate from the bucket.
Signature:
export declare function bucketMeasures(bucket: IBucket, predicate?: MeasurePredicate): IMeasure[];
Parameters
Parameter | Type | Description |
---|---|---|
bucket | IBucket | bucket to work with |
predicate | MeasurePredicate | (Optional) measure predicate; anyMeasure predicate 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 from the bucket will be returned.