visualise-elastic-profile
Version:
Visualise results from Profile API of ElasticSearch on the command line
16 lines (15 loc) • 600 B
TypeScript
import { Query, QueryType } from './types';
/**
* @param durationInNanos
* @returns formatted string from the duration
*/
export declare function durationToString(durationInNanos: number): string;
/**
* @param query to render to a string
* @param options - configure the output, maxWidth controls the width of the string, colorByQueryType allows coloring the output
* @returns query and its children rendered as a string
*/
export declare function queryToString(query: Query, { maxWidth, colorByQueryType }?: {
maxWidth?: number;
colorByQueryType?: Map<QueryType, string>;
}): string;