mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
25 lines
852 B
TypeScript
25 lines
852 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
export interface TrackContentfulRender {
|
|
/**
|
|
* A way to report that the contentful render has been completed
|
|
*/
|
|
trackContentfulRender: () => void;
|
|
}
|
|
|
|
export const canTrackContentfulRender = (root: unknown): root is TrackContentfulRender => {
|
|
return root !== null && typeof root === 'object' && 'trackContentfulRender' in root;
|
|
};
|
|
|
|
export interface TracksQueryPerformance {
|
|
firstLoad: boolean;
|
|
creationStartTime?: number;
|
|
creationEndTime?: number;
|
|
lastLoadStartTime?: number;
|
|
}
|