Gets the index of the first measure matching the provided predicate from the bucket.
export declare function bucketMeasureIndex(bucket: IBucket, idOrFun?: string | MeasurePredicate): number;
|bucket||IBucket||bucket to to search in|
|idOrFun||string | MeasurePredicate||(Optional) measure identifier or instance of MeasurePredicate; anyMeasure predicate is default|
-1 if no matching measure is found
If no predicate is provided, then the function defaults to anyMeasure predicate - meaning first found measure will be returned.
This function also provides convenience to find measure by its local identifier - if you pass predicate as string the function will automatically create idMatchMeasure predicate.