mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-22 03:02:16 -08:00
21 lines
529 B
TypeScript
21 lines
529 B
TypeScript
|
import React, { FC } from 'react';
|
||
|
import './QueryStatsView.css';
|
||
|
|
||
|
export interface QueryStats {
|
||
|
loadTime: number;
|
||
|
resolution: number;
|
||
|
resultSeries: number;
|
||
|
}
|
||
|
|
||
|
const QueryStatsView: FC<QueryStats> = props => {
|
||
|
const {loadTime, resolution, resultSeries} = props;
|
||
|
|
||
|
return (
|
||
|
<div className="query-stats">
|
||
|
<span className="float-right">Load time: {loadTime}ms   Resolution: {resolution}s   Result series: {resultSeries}</span>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default QueryStatsView;
|