mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-03 18:07:27 -08:00
3b39f6ae45
* Initial react-ui linting rules Signed-off-by: cstdev <pietomb00@hotmail.com> * Add react linting to build process Move eslint config to its own file to keep package.json clearer. Signed-off-by: cstdev <pietomb00@hotmail.com> * Linting changes from master Signed-off-by: cstdev <pietomb00@hotmail.com> * Move CI linting to makefile and travis Also add trailing comma to multiline imports. Signed-off-by: cstdev <pietomb00@hotmail.com> * Add lint fix target to makefile Signed-off-by: cstdev <pietomb00@hotmail.com> * Lint latest master Signed-off-by: cstdev <pietomb00@hotmail.com>
23 lines
522 B
TypeScript
23 lines
522 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;
|