|
@@ -4,6 +4,12 @@ import { useTranslation } from 'react-i18next';
|
|
import { useNavigationHook, useInterval } from '@/hooks';
|
|
import { useNavigationHook, useInterval } from '@/hooks';
|
|
import { PrometheusHttp } from '@/http/Prometheus';
|
|
import { PrometheusHttp } from '@/http/Prometheus';
|
|
import { ALL_ROUTER_TYPES } from '@/router/Types';
|
|
import { ALL_ROUTER_TYPES } from '@/router/Types';
|
|
|
|
+import {
|
|
|
|
+ LAST_TIME_HEALTHY_THRESHOLD_CPU,
|
|
|
|
+ LAST_TIME_HEALTHY_THRESHOLD_MEMORY,
|
|
|
|
+ DEFAULT_HEALTHY_THRESHOLD_CPU,
|
|
|
|
+ DEFAULT_HEALTHY_THRESHOLD_MEMORY,
|
|
|
|
+} from '@/consts';
|
|
import {
|
|
import {
|
|
ENodeService,
|
|
ENodeService,
|
|
ILineChartData,
|
|
ILineChartData,
|
|
@@ -16,14 +22,7 @@ import Topology from './Topology';
|
|
import { reconNodeTree } from './dataHandler';
|
|
import { reconNodeTree } from './dataHandler';
|
|
import HealthyIndexOverview from './HealthyIndexOverview';
|
|
import HealthyIndexOverview from './HealthyIndexOverview';
|
|
import { timeRangeOptions } from './consts';
|
|
import { timeRangeOptions } from './consts';
|
|
-import {
|
|
|
|
- LAST_TIME_HEALTHY_THRESHOLD_CPU,
|
|
|
|
- LAST_TIME_HEALTHY_THRESHOLD_MEMORY,
|
|
|
|
-} from '@/consts/Localstorage';
|
|
|
|
-import {
|
|
|
|
- DEFAULT_HEALTHY_THRESHOLD_CPU,
|
|
|
|
- DEFAULT_HEALTHY_THRESHOLD_MEMORY,
|
|
|
|
-} from '@/consts/Prometheus';
|
|
|
|
|
|
+
|
|
|
|
|
|
const getStyles = makeStyles((theme: Theme) => ({
|
|
const getStyles = makeStyles((theme: Theme) => ({
|
|
root: {
|
|
root: {
|