function
Source: index.ts ↗
bucketMeasures()
Gets all measures matching the provided predicate from the bucket.
export declare function bucketMeasures(bucket: IBucket, predicate?: MeasurePredicate): IMeasure[];
Parameters
Parameter | Type | Description |
|---|---|---|
bucket | bucket to work with | |
predicate | (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.