UNPKG

visualise-elastic-profile

Version:

Visualise results from Profile API of ElasticSearch on the command line

5 lines (4 loc) 410 B
import { Profile, Query } from './types'; export declare function arrayToMultiMap<Item, Key extends string | number, Value = Item>(items: readonly Item[], keyFunction: (item: Item) => Key, valueFunction?: (item: Item) => Value): Map<Key, Value[]>; export declare function getQueryTypesFromProfile(profile: Profile): Set<string>; export declare function getAllLeafQueriesFromProfile(profile: Profile): Query[];