2019-10-23 03:47:37 -07:00
|
|
|
import React, { FC } from 'react';
|
|
|
|
import './QueryStatsView.css';
|
|
|
|
|
|
|
|
export interface QueryStats {
|
2019-10-28 07:02:42 -07:00
|
|
|
loadTime: number;
|
|
|
|
resolution: number;
|
|
|
|
resultSeries: number;
|
2019-10-23 03:47:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
const QueryStatsView: FC<QueryStats> = props => {
|
2019-10-28 07:02:42 -07:00
|
|
|
const { loadTime, resolution, resultSeries } = props;
|
2019-10-23 03:47:37 -07:00
|
|
|
|
2019-10-28 07:02:42 -07:00
|
|
|
return (
|
|
|
|
<div className="query-stats">
|
|
|
|
<span className="float-right">
|
|
|
|
Load time: {loadTime}ms   Resolution: {resolution}s   Result series: {resultSeries}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
2019-10-23 03:47:37 -07:00
|
|
|
|
|
|
|
export default QueryStatsView;
|