Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b99ba0f9f | ||
|
|
841abf8c0b | ||
|
|
df54e6350d | ||
|
|
f6bc30050b | ||
|
|
1e76046c7c | ||
|
|
910751713d | ||
|
|
85c671c8d5 | ||
|
|
4d2094b4ce | ||
|
|
32410baa72 | ||
|
|
2a5fb9fd6f | ||
|
|
514bceca34 | ||
|
|
ac7d8bcde2 | ||
|
|
88312e971d | ||
|
|
17533b2f1c | ||
|
|
c4044fa2c5 | ||
|
|
deddf47e84 | ||
|
|
08323e4dfd | ||
|
|
ee19f1749b | ||
|
|
b21db878e8 | ||
|
|
a7ddd2ddf0 | ||
|
|
4d72f47758 | ||
|
|
b5b513f1e0 | ||
|
|
4878f725ea | ||
|
|
eca13075e9 | ||
|
|
e5ab664483 | ||
|
|
a3f32b3d85 | ||
|
|
9c2f127282 |
@@ -40,7 +40,7 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
schema-migrator-sync:
|
schema-migrator-sync:
|
||||||
image: signoz/signoz-schema-migrator:v0.129.0
|
image: signoz/signoz-schema-migrator:v0.129.2
|
||||||
container_name: schema-migrator-sync
|
container_name: schema-migrator-sync
|
||||||
command:
|
command:
|
||||||
- sync
|
- sync
|
||||||
@@ -53,7 +53,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
schema-migrator-async:
|
schema-migrator-async:
|
||||||
image: signoz/signoz-schema-migrator:v0.129.0
|
image: signoz/signoz-schema-migrator:v0.129.2
|
||||||
container_name: schema-migrator-async
|
container_name: schema-migrator-async
|
||||||
command:
|
command:
|
||||||
- async
|
- async
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ services:
|
|||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
signoz:
|
signoz:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz:v0.92.1
|
image: signoz/signoz:v0.93.0
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
ports:
|
ports:
|
||||||
@@ -207,7 +207,7 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:v0.129.0
|
image: signoz/signoz-otel-collector:v0.129.2
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
- --manager-config=/etc/manager-config.yaml
|
- --manager-config=/etc/manager-config.yaml
|
||||||
@@ -231,7 +231,7 @@ services:
|
|||||||
- signoz
|
- signoz
|
||||||
schema-migrator:
|
schema-migrator:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:v0.129.0
|
image: signoz/signoz-schema-migrator:v0.129.2
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ services:
|
|||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
signoz:
|
signoz:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz:v0.92.1
|
image: signoz/signoz:v0.93.0
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
ports:
|
ports:
|
||||||
@@ -148,7 +148,7 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:v0.129.0
|
image: signoz/signoz-otel-collector:v0.129.2
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
- --manager-config=/etc/manager-config.yaml
|
- --manager-config=/etc/manager-config.yaml
|
||||||
@@ -174,7 +174,7 @@ services:
|
|||||||
- signoz
|
- signoz
|
||||||
schema-migrator:
|
schema-migrator:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:v0.129.0
|
image: signoz/signoz-schema-migrator:v0.129.2
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ services:
|
|||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
signoz:
|
signoz:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz:${VERSION:-v0.92.1}
|
image: signoz/signoz:${VERSION:-v0.93.0}
|
||||||
container_name: signoz
|
container_name: signoz
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
@@ -211,7 +211,7 @@ services:
|
|||||||
# TODO: support otel-collector multiple replicas. Nginx/Traefik for loadbalancing?
|
# TODO: support otel-collector multiple replicas. Nginx/Traefik for loadbalancing?
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-v0.129.0}
|
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-v0.129.2}
|
||||||
container_name: signoz-otel-collector
|
container_name: signoz-otel-collector
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
@@ -237,7 +237,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-sync:
|
schema-migrator-sync:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.0}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.2}
|
||||||
container_name: schema-migrator-sync
|
container_name: schema-migrator-sync
|
||||||
command:
|
command:
|
||||||
- sync
|
- sync
|
||||||
@@ -248,7 +248,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-async:
|
schema-migrator-async:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.0}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.2}
|
||||||
container_name: schema-migrator-async
|
container_name: schema-migrator-async
|
||||||
command:
|
command:
|
||||||
- async
|
- async
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ services:
|
|||||||
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
# - ../common/clickhouse/storage.xml:/etc/clickhouse-server/config.d/storage.xml
|
||||||
signoz:
|
signoz:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz:${VERSION:-v0.92.1}
|
image: signoz/signoz:${VERSION:-v0.93.0}
|
||||||
container_name: signoz
|
container_name: signoz
|
||||||
command:
|
command:
|
||||||
- --config=/root/config/prometheus.yml
|
- --config=/root/config/prometheus.yml
|
||||||
@@ -143,7 +143,7 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
otel-collector:
|
otel-collector:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-v0.129.0}
|
image: signoz/signoz-otel-collector:${OTELCOL_TAG:-v0.129.2}
|
||||||
container_name: signoz-otel-collector
|
container_name: signoz-otel-collector
|
||||||
command:
|
command:
|
||||||
- --config=/etc/otel-collector-config.yaml
|
- --config=/etc/otel-collector-config.yaml
|
||||||
@@ -165,7 +165,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
schema-migrator-sync:
|
schema-migrator-sync:
|
||||||
!!merge <<: *common
|
!!merge <<: *common
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.0}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.2}
|
||||||
container_name: schema-migrator-sync
|
container_name: schema-migrator-sync
|
||||||
command:
|
command:
|
||||||
- sync
|
- sync
|
||||||
@@ -177,7 +177,7 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
schema-migrator-async:
|
schema-migrator-async:
|
||||||
!!merge <<: *db-depend
|
!!merge <<: *db-depend
|
||||||
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.0}
|
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.129.2}
|
||||||
container_name: schema-migrator-async
|
container_name: schema-migrator-async
|
||||||
command:
|
command:
|
||||||
- async
|
- async
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ func (s *Server) createPublicServer(apiHandler *api.APIHandler, web web.Web) (*h
|
|||||||
s.config.APIServer.Timeout.Max,
|
s.config.APIServer.Timeout.Max,
|
||||||
).Wrap)
|
).Wrap)
|
||||||
r.Use(middleware.NewLogging(s.signoz.Instrumentation.Logger(), s.config.APIServer.Logging.ExcludedRoutes).Wrap)
|
r.Use(middleware.NewLogging(s.signoz.Instrumentation.Logger(), s.config.APIServer.Logging.ExcludedRoutes).Wrap)
|
||||||
|
r.Use(middleware.NewComment().Wrap)
|
||||||
|
|
||||||
apiHandler.RegisterRoutes(r, am)
|
apiHandler.RegisterRoutes(r, am)
|
||||||
apiHandler.RegisterLogsRoutes(r, am)
|
apiHandler.RegisterLogsRoutes(r, am)
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ const config: Config.InitialOptions = {
|
|||||||
'ts-jest': {
|
'ts-jest': {
|
||||||
useESM: true,
|
useESM: true,
|
||||||
isolatedModules: true,
|
isolatedModules: true,
|
||||||
|
tsconfig: '<rootDir>/tsconfig.jest.json',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
testMatch: ['<rootDir>/src/**/*?(*.)(test).(ts|js)?(x)'],
|
testMatch: ['<rootDir>/src/**/*?(*.)(test).(ts|js)?(x)'],
|
||||||
@@ -25,7 +26,7 @@ const config: Config.InitialOptions = {
|
|||||||
'^.+\\.(js|jsx)$': 'babel-jest',
|
'^.+\\.(js|jsx)$': 'babel-jest',
|
||||||
},
|
},
|
||||||
transformIgnorePatterns: [
|
transformIgnorePatterns: [
|
||||||
'node_modules/(?!(lodash-es|react-dnd|core-dnd|@react-dnd|dnd-core|react-dnd-html5-backend|axios|@signozhq/design-tokens|d3-interpolate|d3-color|api|@codemirror|@lezer|@marijn)/)',
|
'node_modules/(?!(lodash-es|react-dnd|core-dnd|@react-dnd|dnd-core|react-dnd-html5-backend|axios|@signozhq/design-tokens|@signozhq/calendar|@signozhq/input|@signozhq/popover|@signozhq/button|date-fns|d3-interpolate|d3-color|api|@codemirror|@lezer|@marijn)/)',
|
||||||
],
|
],
|
||||||
setupFilesAfterEnv: ['<rootDir>jest.setup.ts'],
|
setupFilesAfterEnv: ['<rootDir>jest.setup.ts'],
|
||||||
testPathIgnorePatterns: ['/node_modules/', '/public/'],
|
testPathIgnorePatterns: ['/node_modules/', '/public/'],
|
||||||
|
|||||||
@@ -43,11 +43,15 @@
|
|||||||
"@radix-ui/react-tooltip": "1.0.7",
|
"@radix-ui/react-tooltip": "1.0.7",
|
||||||
"@sentry/react": "8.41.0",
|
"@sentry/react": "8.41.0",
|
||||||
"@sentry/webpack-plugin": "2.22.6",
|
"@sentry/webpack-plugin": "2.22.6",
|
||||||
|
"@signozhq/badge": "0.0.2",
|
||||||
|
"@signozhq/calendar": "0.0.0",
|
||||||
"@signozhq/design-tokens": "1.1.4",
|
"@signozhq/design-tokens": "1.1.4",
|
||||||
|
"@signozhq/input": "0.0.2",
|
||||||
|
"@signozhq/popover": "0.0.0",
|
||||||
"@tanstack/react-table": "8.20.6",
|
"@tanstack/react-table": "8.20.6",
|
||||||
"@tanstack/react-virtual": "3.11.2",
|
"@tanstack/react-virtual": "3.11.2",
|
||||||
"@uiw/codemirror-theme-github": "4.24.1",
|
|
||||||
"@uiw/codemirror-theme-copilot": "4.23.11",
|
"@uiw/codemirror-theme-copilot": "4.23.11",
|
||||||
|
"@uiw/codemirror-theme-github": "4.24.1",
|
||||||
"@uiw/react-codemirror": "4.23.10",
|
"@uiw/react-codemirror": "4.23.10",
|
||||||
"@uiw/react-md-editor": "3.23.5",
|
"@uiw/react-md-editor": "3.23.5",
|
||||||
"@visx/group": "3.3.0",
|
"@visx/group": "3.3.0",
|
||||||
@@ -92,6 +96,7 @@
|
|||||||
"i18next-http-backend": "^1.3.2",
|
"i18next-http-backend": "^1.3.2",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
"js-base64": "^3.7.2",
|
"js-base64": "^3.7.2",
|
||||||
|
"kbar": "0.1.0-beta.48",
|
||||||
"less": "^4.1.2",
|
"less": "^4.1.2",
|
||||||
"less-loader": "^10.2.0",
|
"less-loader": "^10.2.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import getLocalStorageApi from 'api/browser/localstorage/get';
|
|||||||
import setLocalStorageApi from 'api/browser/localstorage/set';
|
import setLocalStorageApi from 'api/browser/localstorage/set';
|
||||||
import logEvent from 'api/common/logEvent';
|
import logEvent from 'api/common/logEvent';
|
||||||
import AppLoading from 'components/AppLoading/AppLoading';
|
import AppLoading from 'components/AppLoading/AppLoading';
|
||||||
|
import KBarCommandPalette from 'components/KBarCommandPalette/KBarCommandPalette';
|
||||||
import NotFound from 'components/NotFound';
|
import NotFound from 'components/NotFound';
|
||||||
import Spinner from 'components/Spinner';
|
import Spinner from 'components/Spinner';
|
||||||
import UserpilotRouteTracker from 'components/UserpilotRouteTracker/UserpilotRouteTracker';
|
import UserpilotRouteTracker from 'components/UserpilotRouteTracker/UserpilotRouteTracker';
|
||||||
@@ -25,6 +26,7 @@ import { useAppContext } from 'providers/App/App';
|
|||||||
import { IUser } from 'providers/App/types';
|
import { IUser } from 'providers/App/types';
|
||||||
import { DashboardProvider } from 'providers/Dashboard/Dashboard';
|
import { DashboardProvider } from 'providers/Dashboard/Dashboard';
|
||||||
import { ErrorModalProvider } from 'providers/ErrorModalProvider';
|
import { ErrorModalProvider } from 'providers/ErrorModalProvider';
|
||||||
|
import { KBarCommandPaletteProvider } from 'providers/KBarCommandPaletteProvider';
|
||||||
import { QueryBuilderProvider } from 'providers/QueryBuilder';
|
import { QueryBuilderProvider } from 'providers/QueryBuilder';
|
||||||
import { Suspense, useCallback, useEffect, useState } from 'react';
|
import { Suspense, useCallback, useEffect, useState } from 'react';
|
||||||
import { Route, Router, Switch } from 'react-router-dom';
|
import { Route, Router, Switch } from 'react-router-dom';
|
||||||
@@ -368,39 +370,42 @@ function App(): JSX.Element {
|
|||||||
<ConfigProvider theme={themeConfig}>
|
<ConfigProvider theme={themeConfig}>
|
||||||
<Router history={history}>
|
<Router history={history}>
|
||||||
<CompatRouter>
|
<CompatRouter>
|
||||||
<UserpilotRouteTracker />
|
<KBarCommandPaletteProvider>
|
||||||
<NotificationProvider>
|
<UserpilotRouteTracker />
|
||||||
<ErrorModalProvider>
|
<KBarCommandPalette />
|
||||||
<PrivateRoute>
|
<NotificationProvider>
|
||||||
<ResourceProvider>
|
<ErrorModalProvider>
|
||||||
<QueryBuilderProvider>
|
<PrivateRoute>
|
||||||
<DashboardProvider>
|
<ResourceProvider>
|
||||||
<KeyboardHotkeysProvider>
|
<QueryBuilderProvider>
|
||||||
<AlertRuleProvider>
|
<DashboardProvider>
|
||||||
<AppLayout>
|
<KeyboardHotkeysProvider>
|
||||||
<Suspense fallback={<Spinner size="large" tip="Loading..." />}>
|
<AlertRuleProvider>
|
||||||
<Switch>
|
<AppLayout>
|
||||||
{routes.map(({ path, component, exact }) => (
|
<Suspense fallback={<Spinner size="large" tip="Loading..." />}>
|
||||||
<Route
|
<Switch>
|
||||||
key={`${path}`}
|
{routes.map(({ path, component, exact }) => (
|
||||||
exact={exact}
|
<Route
|
||||||
path={path}
|
key={`${path}`}
|
||||||
component={component}
|
exact={exact}
|
||||||
/>
|
path={path}
|
||||||
))}
|
component={component}
|
||||||
<Route exact path="/" component={Home} />
|
/>
|
||||||
<Route path="*" component={NotFound} />
|
))}
|
||||||
</Switch>
|
<Route exact path="/" component={Home} />
|
||||||
</Suspense>
|
<Route path="*" component={NotFound} />
|
||||||
</AppLayout>
|
</Switch>
|
||||||
</AlertRuleProvider>
|
</Suspense>
|
||||||
</KeyboardHotkeysProvider>
|
</AppLayout>
|
||||||
</DashboardProvider>
|
</AlertRuleProvider>
|
||||||
</QueryBuilderProvider>
|
</KeyboardHotkeysProvider>
|
||||||
</ResourceProvider>
|
</DashboardProvider>
|
||||||
</PrivateRoute>
|
</QueryBuilderProvider>
|
||||||
</ErrorModalProvider>
|
</ResourceProvider>
|
||||||
</NotificationProvider>
|
</PrivateRoute>
|
||||||
|
</ErrorModalProvider>
|
||||||
|
</NotificationProvider>
|
||||||
|
</KBarCommandPaletteProvider>
|
||||||
</CompatRouter>
|
</CompatRouter>
|
||||||
</Router>
|
</Router>
|
||||||
</ConfigProvider>
|
</ConfigProvider>
|
||||||
|
|||||||
284
frontend/src/api/v5/queryRange/convertV5Response.test.ts
Normal file
284
frontend/src/api/v5/queryRange/convertV5Response.test.ts
Normal file
@@ -0,0 +1,284 @@
|
|||||||
|
/* eslint-disable sonarjs/no-duplicate-string */
|
||||||
|
import { SuccessResponse } from 'types/api';
|
||||||
|
import {
|
||||||
|
MetricRangePayloadV5,
|
||||||
|
QueryBuilderFormula,
|
||||||
|
QueryRangeRequestV5,
|
||||||
|
QueryRangeResponseV5,
|
||||||
|
RequestType,
|
||||||
|
ScalarData,
|
||||||
|
TelemetryFieldKey,
|
||||||
|
TimeSeries,
|
||||||
|
TimeSeriesData,
|
||||||
|
TimeSeriesValue,
|
||||||
|
} from 'types/api/v5/queryRange';
|
||||||
|
|
||||||
|
import { convertV5ResponseToLegacy } from './convertV5Response';
|
||||||
|
|
||||||
|
describe('convertV5ResponseToLegacy', () => {
|
||||||
|
function makeBaseSuccess<T>(
|
||||||
|
payload: T,
|
||||||
|
params: QueryRangeRequestV5,
|
||||||
|
): SuccessResponse<T, QueryRangeRequestV5> {
|
||||||
|
return {
|
||||||
|
statusCode: 200,
|
||||||
|
message: 'success',
|
||||||
|
payload,
|
||||||
|
error: null,
|
||||||
|
params,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function makeBaseParams(
|
||||||
|
requestType: RequestType,
|
||||||
|
queries: QueryRangeRequestV5['compositeQuery']['queries'],
|
||||||
|
): QueryRangeRequestV5 {
|
||||||
|
return {
|
||||||
|
schemaVersion: 'v1',
|
||||||
|
start: 1,
|
||||||
|
end: 2,
|
||||||
|
requestType,
|
||||||
|
compositeQuery: { queries },
|
||||||
|
variables: {},
|
||||||
|
formatOptions: { formatTableResultForUI: false, fillGaps: false },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
it('converts time_series response into legacy series structure', () => {
|
||||||
|
const timeSeries: TimeSeriesData = {
|
||||||
|
queryName: 'A',
|
||||||
|
aggregations: [
|
||||||
|
{
|
||||||
|
index: 0,
|
||||||
|
alias: '__result_0',
|
||||||
|
meta: {},
|
||||||
|
series: [
|
||||||
|
({
|
||||||
|
labels: [
|
||||||
|
{
|
||||||
|
key: ({ name: 'service.name' } as unknown) as TelemetryFieldKey,
|
||||||
|
value: 'adservice',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
values: [
|
||||||
|
({ timestamp: 1000, value: 10 } as unknown) as TimeSeriesValue,
|
||||||
|
({ timestamp: 2000, value: 12 } as unknown) as TimeSeriesValue,
|
||||||
|
],
|
||||||
|
} as unknown) as TimeSeries,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
const v5Data: QueryRangeResponseV5 = {
|
||||||
|
type: 'time_series',
|
||||||
|
data: { results: [timeSeries] },
|
||||||
|
meta: { rowsScanned: 0, bytesScanned: 0, durationMs: 0 },
|
||||||
|
};
|
||||||
|
|
||||||
|
const params = makeBaseParams('time_series', [
|
||||||
|
{
|
||||||
|
type: 'builder_query',
|
||||||
|
spec: {
|
||||||
|
name: 'A',
|
||||||
|
signal: 'traces',
|
||||||
|
stepInterval: 60,
|
||||||
|
disabled: false,
|
||||||
|
aggregations: [{ expression: 'count()' }],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
const input: SuccessResponse<
|
||||||
|
MetricRangePayloadV5,
|
||||||
|
QueryRangeRequestV5
|
||||||
|
> = makeBaseSuccess({ data: v5Data }, params);
|
||||||
|
|
||||||
|
const legendMap = { A: '{{service.name}}' };
|
||||||
|
const result = convertV5ResponseToLegacy(input, legendMap, false);
|
||||||
|
|
||||||
|
expect(result.payload.data.resultType).toBe('time_series');
|
||||||
|
expect(result.payload.data.result).toHaveLength(1);
|
||||||
|
const q = result.payload.data.result[0];
|
||||||
|
expect(q.queryName).toBe('A');
|
||||||
|
expect(q.legend).toBe('{{service.name}}');
|
||||||
|
expect(q.series?.[0]).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
labels: { 'service.name': 'adservice' },
|
||||||
|
values: [
|
||||||
|
{ timestamp: 1000, value: '10' },
|
||||||
|
{ timestamp: 2000, value: '12' },
|
||||||
|
],
|
||||||
|
metaData: expect.objectContaining({
|
||||||
|
alias: '__result_0',
|
||||||
|
index: 0,
|
||||||
|
queryName: 'A',
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('converts scalar to legacy table (formatForWeb=false) with names/ids resolved from aggregations', () => {
|
||||||
|
const scalar: ScalarData = {
|
||||||
|
columns: [
|
||||||
|
// group column
|
||||||
|
({
|
||||||
|
name: 'service.name',
|
||||||
|
queryName: 'A',
|
||||||
|
aggregationIndex: 0,
|
||||||
|
columnType: 'group',
|
||||||
|
} as unknown) as ScalarData['columns'][number],
|
||||||
|
// aggregation 0
|
||||||
|
({
|
||||||
|
name: '__result_0',
|
||||||
|
queryName: 'A',
|
||||||
|
aggregationIndex: 0,
|
||||||
|
columnType: 'aggregation',
|
||||||
|
} as unknown) as ScalarData['columns'][number],
|
||||||
|
// aggregation 1
|
||||||
|
({
|
||||||
|
name: '__result_1',
|
||||||
|
queryName: 'A',
|
||||||
|
aggregationIndex: 1,
|
||||||
|
columnType: 'aggregation',
|
||||||
|
} as unknown) as ScalarData['columns'][number],
|
||||||
|
// formula F1
|
||||||
|
({
|
||||||
|
name: '__result',
|
||||||
|
queryName: 'F1',
|
||||||
|
aggregationIndex: 0,
|
||||||
|
columnType: 'aggregation',
|
||||||
|
} as unknown) as ScalarData['columns'][number],
|
||||||
|
],
|
||||||
|
data: [['adservice', 606, 1.452, 151.5]],
|
||||||
|
};
|
||||||
|
|
||||||
|
const v5Data: QueryRangeResponseV5 = {
|
||||||
|
type: 'scalar',
|
||||||
|
data: { results: [scalar] },
|
||||||
|
meta: { rowsScanned: 0, bytesScanned: 0, durationMs: 0 },
|
||||||
|
};
|
||||||
|
|
||||||
|
const params = makeBaseParams('scalar', [
|
||||||
|
{
|
||||||
|
type: 'builder_query',
|
||||||
|
spec: {
|
||||||
|
name: 'A',
|
||||||
|
signal: 'traces',
|
||||||
|
stepInterval: 60,
|
||||||
|
disabled: false,
|
||||||
|
aggregations: [
|
||||||
|
{ expression: 'count()' },
|
||||||
|
{ expression: 'avg(app.ads.count)', alias: 'avg' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'builder_formula',
|
||||||
|
spec: ({
|
||||||
|
name: 'F1',
|
||||||
|
expression: 'A * 0.25',
|
||||||
|
} as unknown) as QueryBuilderFormula,
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
const input: SuccessResponse<
|
||||||
|
MetricRangePayloadV5,
|
||||||
|
QueryRangeRequestV5
|
||||||
|
> = makeBaseSuccess({ data: v5Data }, params);
|
||||||
|
const legendMap = { A: '{{service.name}}', F1: '' };
|
||||||
|
const result = convertV5ResponseToLegacy(input, legendMap, false);
|
||||||
|
|
||||||
|
expect(result.payload.data.resultType).toBe('scalar');
|
||||||
|
const [tableEntry] = result.payload.data.result;
|
||||||
|
expect(tableEntry.table?.columns).toEqual([
|
||||||
|
{
|
||||||
|
name: 'service.name',
|
||||||
|
queryName: 'A',
|
||||||
|
isValueColumn: false,
|
||||||
|
id: 'service.name',
|
||||||
|
},
|
||||||
|
{ name: 'count()', queryName: 'A', isValueColumn: true, id: 'A.count()' },
|
||||||
|
{
|
||||||
|
name: 'avg',
|
||||||
|
queryName: 'A',
|
||||||
|
isValueColumn: true,
|
||||||
|
id: 'A.avg(app.ads.count)',
|
||||||
|
},
|
||||||
|
{ name: 'F1', queryName: 'F1', isValueColumn: true, id: 'F1' },
|
||||||
|
]);
|
||||||
|
expect(tableEntry.table?.rows?.[0]).toEqual({
|
||||||
|
data: {
|
||||||
|
'service.name': 'adservice',
|
||||||
|
'A.count()': 606,
|
||||||
|
'A.avg(app.ads.count)': 1.452,
|
||||||
|
F1: 151.5,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('converts scalar with formatForWeb=true to UI-friendly table', () => {
|
||||||
|
const scalar: ScalarData = {
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
name: 'service.name',
|
||||||
|
queryName: 'A',
|
||||||
|
aggregationIndex: 0,
|
||||||
|
columnType: 'group',
|
||||||
|
} as any,
|
||||||
|
{
|
||||||
|
name: '__result_0',
|
||||||
|
queryName: 'A',
|
||||||
|
aggregationIndex: 0,
|
||||||
|
columnType: 'aggregation',
|
||||||
|
} as any,
|
||||||
|
],
|
||||||
|
data: [['adservice', 580]],
|
||||||
|
};
|
||||||
|
|
||||||
|
const v5Data: QueryRangeResponseV5 = {
|
||||||
|
type: 'scalar',
|
||||||
|
data: { results: [scalar] },
|
||||||
|
meta: { rowsScanned: 0, bytesScanned: 0, durationMs: 0 },
|
||||||
|
};
|
||||||
|
|
||||||
|
const params = makeBaseParams('scalar', [
|
||||||
|
{
|
||||||
|
type: 'builder_query',
|
||||||
|
spec: {
|
||||||
|
name: 'A',
|
||||||
|
signal: 'traces',
|
||||||
|
stepInterval: 60,
|
||||||
|
disabled: false,
|
||||||
|
aggregations: [{ expression: 'count()' }],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
const input: SuccessResponse<
|
||||||
|
MetricRangePayloadV5,
|
||||||
|
QueryRangeRequestV5
|
||||||
|
> = makeBaseSuccess({ data: v5Data }, params);
|
||||||
|
const legendMap = { A: '{{service.name}}' };
|
||||||
|
const result = convertV5ResponseToLegacy(input, legendMap, true);
|
||||||
|
|
||||||
|
expect(result.payload.data.resultType).toBe('scalar');
|
||||||
|
const [tableEntry] = result.payload.data.result;
|
||||||
|
expect(tableEntry.table?.columns).toEqual([
|
||||||
|
{
|
||||||
|
name: 'service.name',
|
||||||
|
queryName: 'A',
|
||||||
|
isValueColumn: false,
|
||||||
|
id: 'service.name',
|
||||||
|
},
|
||||||
|
// Single aggregation: name resolves to legend, id resolves to queryName
|
||||||
|
{ name: '{{service.name}}', queryName: 'A', isValueColumn: true, id: 'A' },
|
||||||
|
]);
|
||||||
|
expect(tableEntry.table?.rows?.[0]).toEqual({
|
||||||
|
data: {
|
||||||
|
'service.name': 'adservice',
|
||||||
|
A: 580,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,633 @@
|
|||||||
|
/* eslint-disable sonarjs/no-duplicate-string, simple-import-sort/imports, @typescript-eslint/indent, no-mixed-spaces-and-tabs */
|
||||||
|
import { PANEL_TYPES } from 'constants/queryBuilder';
|
||||||
|
import {
|
||||||
|
IBuilderFormula,
|
||||||
|
IBuilderQuery,
|
||||||
|
} from 'types/api/queryBuilder/queryBuilderData';
|
||||||
|
import { GetQueryResultsProps } from 'lib/dashboard/getQueryResults';
|
||||||
|
import {
|
||||||
|
ClickHouseQuery,
|
||||||
|
LogAggregation,
|
||||||
|
LogBuilderQuery,
|
||||||
|
MetricBuilderQuery,
|
||||||
|
PromQuery,
|
||||||
|
QueryBuilderFormula as V5QueryBuilderFormula,
|
||||||
|
QueryEnvelope,
|
||||||
|
QueryRangePayloadV5,
|
||||||
|
} from 'types/api/v5/queryRange';
|
||||||
|
import { EQueryType } from 'types/common/dashboard';
|
||||||
|
import { DataSource } from 'types/common/queryBuilder';
|
||||||
|
import { DataTypes } from 'types/api/queryBuilder/queryAutocompleteResponse';
|
||||||
|
|
||||||
|
import { prepareQueryRangePayloadV5 } from './prepareQueryRangePayloadV5';
|
||||||
|
|
||||||
|
jest.mock('lib/getStartEndRangeTime', () => ({
|
||||||
|
__esModule: true,
|
||||||
|
default: jest.fn(() => ({ start: '100', end: '200' })),
|
||||||
|
}));
|
||||||
|
|
||||||
|
describe('prepareQueryRangePayloadV5', () => {
|
||||||
|
const start = 1_710_000_000; // seconds
|
||||||
|
const end = 1_710_000_600; // seconds
|
||||||
|
|
||||||
|
const baseBuilderQuery = (
|
||||||
|
overrides?: Partial<IBuilderQuery>,
|
||||||
|
): IBuilderQuery => ({
|
||||||
|
queryName: 'A',
|
||||||
|
dataSource: DataSource.METRICS,
|
||||||
|
aggregations: [
|
||||||
|
{
|
||||||
|
metricName: 'cpu_usage',
|
||||||
|
temporality: '',
|
||||||
|
timeAggregation: 'sum',
|
||||||
|
spaceAggregation: 'avg',
|
||||||
|
reduceTo: 'avg',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
timeAggregation: 'sum',
|
||||||
|
spaceAggregation: 'avg',
|
||||||
|
temporality: '',
|
||||||
|
functions: [
|
||||||
|
{
|
||||||
|
name: 'timeShift',
|
||||||
|
args: [{ value: '5m' }],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
filter: { expression: '' },
|
||||||
|
filters: { items: [], op: 'AND' },
|
||||||
|
groupBy: [],
|
||||||
|
expression: 'A',
|
||||||
|
disabled: false,
|
||||||
|
having: [],
|
||||||
|
limit: null,
|
||||||
|
stepInterval: 600,
|
||||||
|
orderBy: [],
|
||||||
|
reduceTo: 'avg',
|
||||||
|
legend: 'Legend A',
|
||||||
|
...overrides,
|
||||||
|
});
|
||||||
|
|
||||||
|
const baseFormula = (
|
||||||
|
overrides?: Partial<IBuilderFormula>,
|
||||||
|
): IBuilderFormula => ({
|
||||||
|
expression: 'A + 1',
|
||||||
|
disabled: false,
|
||||||
|
queryName: 'F1',
|
||||||
|
legend: 'Formula Legend',
|
||||||
|
limit: undefined,
|
||||||
|
having: [],
|
||||||
|
stepInterval: undefined,
|
||||||
|
orderBy: [],
|
||||||
|
...overrides,
|
||||||
|
});
|
||||||
|
|
||||||
|
it('builds payload for builder queries with formulas and variables', () => {
|
||||||
|
const props: GetQueryResultsProps = {
|
||||||
|
query: {
|
||||||
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
|
id: 'q1',
|
||||||
|
unit: undefined,
|
||||||
|
promql: [],
|
||||||
|
clickhouse_sql: [],
|
||||||
|
builder: {
|
||||||
|
queryData: [baseBuilderQuery()],
|
||||||
|
queryFormulas: [baseFormula()],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
graphType: PANEL_TYPES.TIME_SERIES,
|
||||||
|
selectedTime: 'GLOBAL_TIME',
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
variables: { svc: 'api', count: 5, flag: true },
|
||||||
|
fillGaps: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = prepareQueryRangePayloadV5(props);
|
||||||
|
|
||||||
|
expect(result).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
legendMap: { A: 'Legend A', F1: 'Formula Legend' },
|
||||||
|
queryPayload: expect.objectContaining({
|
||||||
|
compositeQuery: expect.objectContaining({
|
||||||
|
queries: expect.arrayContaining([
|
||||||
|
expect.objectContaining({
|
||||||
|
type: 'builder_query',
|
||||||
|
spec: expect.objectContaining({
|
||||||
|
name: 'A',
|
||||||
|
signal: 'metrics',
|
||||||
|
stepInterval: 600,
|
||||||
|
functions: [{ name: 'timeShift', args: [{ value: '5m' }] }],
|
||||||
|
aggregations: [
|
||||||
|
expect.objectContaining({
|
||||||
|
metricName: 'cpu_usage',
|
||||||
|
timeAggregation: 'sum',
|
||||||
|
spaceAggregation: 'avg',
|
||||||
|
reduceTo: undefined,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
expect.objectContaining({
|
||||||
|
type: 'builder_formula',
|
||||||
|
spec: expect.objectContaining({
|
||||||
|
name: 'F1',
|
||||||
|
expression: 'A + 1',
|
||||||
|
legend: 'Formula Legend',
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
}),
|
||||||
|
requestType: 'time_series',
|
||||||
|
formatOptions: expect.objectContaining({
|
||||||
|
formatTableResultForUI: false,
|
||||||
|
fillGaps: true,
|
||||||
|
}),
|
||||||
|
start: start * 1000,
|
||||||
|
end: end * 1000,
|
||||||
|
variables: expect.objectContaining({
|
||||||
|
svc: { value: 'api' },
|
||||||
|
count: { value: 5 },
|
||||||
|
flag: { value: true },
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
// Legend map combines builder and formulas
|
||||||
|
expect(result.legendMap).toEqual({ A: 'Legend A', F1: 'Formula Legend' });
|
||||||
|
|
||||||
|
const payload: QueryRangePayloadV5 = result.queryPayload;
|
||||||
|
|
||||||
|
expect(payload.schemaVersion).toBe('v1');
|
||||||
|
expect(payload.start).toBe(start * 1000);
|
||||||
|
expect(payload.end).toBe(end * 1000);
|
||||||
|
expect(payload.requestType).toBe('time_series');
|
||||||
|
expect(payload.formatOptions?.formatTableResultForUI).toBe(false);
|
||||||
|
expect(payload.formatOptions?.fillGaps).toBe(true);
|
||||||
|
|
||||||
|
// Variables mapped as { key: { value } }
|
||||||
|
expect(payload.variables).toEqual({
|
||||||
|
svc: { value: 'api' },
|
||||||
|
count: { value: 5 },
|
||||||
|
flag: { value: true },
|
||||||
|
});
|
||||||
|
|
||||||
|
// Queries include one builder_query and one builder_formula
|
||||||
|
expect(payload.compositeQuery.queries).toHaveLength(2);
|
||||||
|
|
||||||
|
const builderQuery = payload.compositeQuery.queries.find(
|
||||||
|
(q) => q.type === 'builder_query',
|
||||||
|
) as QueryEnvelope;
|
||||||
|
const builderSpec = builderQuery.spec as MetricBuilderQuery;
|
||||||
|
expect(builderSpec.name).toBe('A');
|
||||||
|
expect(builderSpec.signal).toBe('metrics');
|
||||||
|
expect(builderSpec.aggregations?.[0]).toMatchObject({
|
||||||
|
metricName: 'cpu_usage',
|
||||||
|
timeAggregation: 'sum',
|
||||||
|
spaceAggregation: 'avg',
|
||||||
|
});
|
||||||
|
// reduceTo should not be present for non-scalar panels
|
||||||
|
expect(builderSpec.aggregations?.[0].reduceTo).toBeUndefined();
|
||||||
|
// functions should be preserved/normalized
|
||||||
|
expect(builderSpec.functions?.[0]?.name).toBe('timeShift');
|
||||||
|
|
||||||
|
const formulaQuery = payload.compositeQuery.queries.find(
|
||||||
|
(q) => q.type === 'builder_formula',
|
||||||
|
) as QueryEnvelope;
|
||||||
|
const formulaSpec = formulaQuery.spec as V5QueryBuilderFormula;
|
||||||
|
expect(formulaSpec.name).toBe('F1');
|
||||||
|
expect(formulaSpec.expression).toBe('A + 1');
|
||||||
|
expect(formulaSpec.legend).toBe('Formula Legend');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('builds payload for PromQL queries and respects originalGraphType for formatting', () => {
|
||||||
|
const props: GetQueryResultsProps = {
|
||||||
|
query: {
|
||||||
|
queryType: EQueryType.PROM,
|
||||||
|
id: 'q2',
|
||||||
|
unit: undefined,
|
||||||
|
promql: [
|
||||||
|
{
|
||||||
|
name: 'A',
|
||||||
|
query: 'up',
|
||||||
|
disabled: false,
|
||||||
|
legend: 'LP',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
clickhouse_sql: [],
|
||||||
|
builder: { queryData: [], queryFormulas: [] },
|
||||||
|
},
|
||||||
|
graphType: PANEL_TYPES.TIME_SERIES,
|
||||||
|
originalGraphType: PANEL_TYPES.TABLE,
|
||||||
|
selectedTime: 'GLOBAL_TIME',
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = prepareQueryRangePayloadV5(props);
|
||||||
|
|
||||||
|
expect(result).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
legendMap: { A: 'LP' },
|
||||||
|
queryPayload: expect.objectContaining({
|
||||||
|
compositeQuery: expect.objectContaining({
|
||||||
|
queries: [
|
||||||
|
{
|
||||||
|
type: 'promql',
|
||||||
|
spec: expect.objectContaining({
|
||||||
|
name: 'A',
|
||||||
|
query: 'up',
|
||||||
|
legend: 'LP',
|
||||||
|
stats: false,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
requestType: 'time_series',
|
||||||
|
formatOptions: expect.objectContaining({
|
||||||
|
formatTableResultForUI: true,
|
||||||
|
fillGaps: false,
|
||||||
|
}),
|
||||||
|
start: start * 1000,
|
||||||
|
end: end * 1000,
|
||||||
|
variables: {},
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.legendMap).toEqual({ A: 'LP' });
|
||||||
|
|
||||||
|
const payload: QueryRangePayloadV5 = result.queryPayload;
|
||||||
|
expect(payload.requestType).toBe('time_series');
|
||||||
|
expect(payload.formatOptions?.formatTableResultForUI).toBe(true);
|
||||||
|
expect(payload.compositeQuery.queries).toHaveLength(1);
|
||||||
|
|
||||||
|
const prom = payload.compositeQuery.queries[0];
|
||||||
|
expect(prom.type).toBe('promql');
|
||||||
|
const promSpec = prom.spec as PromQuery;
|
||||||
|
expect(promSpec.name).toBe('A');
|
||||||
|
expect(promSpec.query).toBe('up');
|
||||||
|
expect(promSpec.legend).toBe('LP');
|
||||||
|
expect(promSpec.stats).toBe(false);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('builds payload for ClickHouse queries and maps requestType from panel', () => {
|
||||||
|
const props: GetQueryResultsProps = {
|
||||||
|
query: {
|
||||||
|
queryType: EQueryType.CLICKHOUSE,
|
||||||
|
id: 'q3',
|
||||||
|
unit: undefined,
|
||||||
|
promql: [],
|
||||||
|
clickhouse_sql: [
|
||||||
|
{
|
||||||
|
name: 'Q',
|
||||||
|
query: 'SELECT 1',
|
||||||
|
disabled: false,
|
||||||
|
legend: 'LC',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
builder: { queryData: [], queryFormulas: [] },
|
||||||
|
},
|
||||||
|
graphType: PANEL_TYPES.TABLE,
|
||||||
|
selectedTime: 'GLOBAL_TIME',
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = prepareQueryRangePayloadV5(props);
|
||||||
|
|
||||||
|
expect(result).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
legendMap: { Q: 'LC' },
|
||||||
|
queryPayload: expect.objectContaining({
|
||||||
|
compositeQuery: expect.objectContaining({
|
||||||
|
queries: [
|
||||||
|
{
|
||||||
|
type: 'clickhouse_sql',
|
||||||
|
spec: expect.objectContaining({
|
||||||
|
name: 'Q',
|
||||||
|
query: 'SELECT 1',
|
||||||
|
legend: 'LC',
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
requestType: 'scalar',
|
||||||
|
formatOptions: expect.objectContaining({
|
||||||
|
formatTableResultForUI: true,
|
||||||
|
fillGaps: false,
|
||||||
|
}),
|
||||||
|
start: start * 1000,
|
||||||
|
end: end * 1000,
|
||||||
|
variables: {},
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.legendMap).toEqual({ Q: 'LC' });
|
||||||
|
|
||||||
|
const payload: QueryRangePayloadV5 = result.queryPayload;
|
||||||
|
expect(payload.requestType).toBe('scalar');
|
||||||
|
expect(payload.compositeQuery.queries).toHaveLength(1);
|
||||||
|
const ch = payload.compositeQuery.queries[0];
|
||||||
|
expect(ch.type).toBe('clickhouse_sql');
|
||||||
|
const chSpec = ch.spec as ClickHouseQuery;
|
||||||
|
expect(chSpec.name).toBe('Q');
|
||||||
|
expect(chSpec.query).toBe('SELECT 1');
|
||||||
|
expect(chSpec.legend).toBe('LC');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('uses getStartEndRangeTime when start/end are not provided', () => {
|
||||||
|
const props: GetQueryResultsProps = {
|
||||||
|
query: {
|
||||||
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
|
id: 'q4',
|
||||||
|
unit: undefined,
|
||||||
|
promql: [],
|
||||||
|
clickhouse_sql: [],
|
||||||
|
builder: { queryData: [], queryFormulas: [] },
|
||||||
|
},
|
||||||
|
graphType: PANEL_TYPES.TIME_SERIES,
|
||||||
|
selectedTime: 'GLOBAL_TIME',
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = prepareQueryRangePayloadV5(props);
|
||||||
|
|
||||||
|
expect(result).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
legendMap: {},
|
||||||
|
queryPayload: expect.objectContaining({
|
||||||
|
compositeQuery: { queries: [] },
|
||||||
|
requestType: 'time_series',
|
||||||
|
formatOptions: expect.objectContaining({
|
||||||
|
formatTableResultForUI: false,
|
||||||
|
fillGaps: false,
|
||||||
|
}),
|
||||||
|
start: 100 * 1000,
|
||||||
|
end: 200 * 1000,
|
||||||
|
variables: {},
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
const payload: QueryRangePayloadV5 = result.queryPayload;
|
||||||
|
expect(payload.start).toBe(100 * 1000);
|
||||||
|
expect(payload.end).toBe(200 * 1000);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('includes reduceTo for metrics in scalar panels (TABLE)', () => {
|
||||||
|
const props: GetQueryResultsProps = {
|
||||||
|
query: {
|
||||||
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
|
id: 'q5',
|
||||||
|
unit: undefined,
|
||||||
|
promql: [],
|
||||||
|
clickhouse_sql: [],
|
||||||
|
builder: {
|
||||||
|
queryData: [baseBuilderQuery()],
|
||||||
|
queryFormulas: [],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
graphType: PANEL_TYPES.TABLE,
|
||||||
|
selectedTime: 'GLOBAL_TIME',
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = prepareQueryRangePayloadV5(props);
|
||||||
|
|
||||||
|
expect(result).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
legendMap: { A: 'Legend A' },
|
||||||
|
queryPayload: expect.objectContaining({
|
||||||
|
compositeQuery: expect.objectContaining({
|
||||||
|
queries: [
|
||||||
|
{
|
||||||
|
type: 'builder_query',
|
||||||
|
spec: expect.objectContaining({
|
||||||
|
name: 'A',
|
||||||
|
signal: 'metrics',
|
||||||
|
stepInterval: 600,
|
||||||
|
functions: [{ name: 'timeShift', args: [{ value: '5m' }] }],
|
||||||
|
aggregations: [
|
||||||
|
expect.objectContaining({
|
||||||
|
metricName: 'cpu_usage',
|
||||||
|
timeAggregation: 'sum',
|
||||||
|
spaceAggregation: 'avg',
|
||||||
|
reduceTo: 'avg',
|
||||||
|
temporality: undefined,
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
requestType: 'scalar',
|
||||||
|
formatOptions: expect.objectContaining({
|
||||||
|
formatTableResultForUI: true,
|
||||||
|
fillGaps: false,
|
||||||
|
}),
|
||||||
|
start: start * 1000,
|
||||||
|
end: end * 1000,
|
||||||
|
variables: {},
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
const payload: QueryRangePayloadV5 = result.queryPayload;
|
||||||
|
const builderQuery = payload.compositeQuery.queries.find(
|
||||||
|
(q) => q.type === 'builder_query',
|
||||||
|
) as QueryEnvelope;
|
||||||
|
const builderSpec = builderQuery.spec as MetricBuilderQuery;
|
||||||
|
expect(builderSpec.aggregations?.[0].reduceTo).toBe('avg');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('omits aggregations for raw request type (LIST panel)', () => {
|
||||||
|
const logAgg: LogAggregation[] = [{ expression: 'count()' }];
|
||||||
|
const logsQuery = baseBuilderQuery({
|
||||||
|
dataSource: DataSource.LOGS,
|
||||||
|
aggregations: logAgg,
|
||||||
|
} as Partial<IBuilderQuery>);
|
||||||
|
|
||||||
|
const props: GetQueryResultsProps = {
|
||||||
|
query: {
|
||||||
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
|
id: 'q6',
|
||||||
|
unit: undefined,
|
||||||
|
promql: [],
|
||||||
|
clickhouse_sql: [],
|
||||||
|
builder: {
|
||||||
|
queryData: [logsQuery],
|
||||||
|
queryFormulas: [],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
graphType: PANEL_TYPES.LIST,
|
||||||
|
selectedTime: 'GLOBAL_TIME',
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = prepareQueryRangePayloadV5(props);
|
||||||
|
|
||||||
|
expect(result).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
legendMap: { A: 'Legend A' },
|
||||||
|
queryPayload: expect.objectContaining({
|
||||||
|
compositeQuery: expect.objectContaining({
|
||||||
|
queries: [
|
||||||
|
{
|
||||||
|
type: 'builder_query',
|
||||||
|
spec: expect.objectContaining({
|
||||||
|
name: 'A',
|
||||||
|
signal: 'logs',
|
||||||
|
stepInterval: 600,
|
||||||
|
functions: [{ name: 'timeShift', args: [{ value: '5m' }] }],
|
||||||
|
aggregations: undefined,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
requestType: 'raw',
|
||||||
|
formatOptions: expect.objectContaining({
|
||||||
|
formatTableResultForUI: false,
|
||||||
|
fillGaps: false,
|
||||||
|
}),
|
||||||
|
start: start * 1000,
|
||||||
|
end: end * 1000,
|
||||||
|
variables: {},
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
const payload: QueryRangePayloadV5 = result.queryPayload;
|
||||||
|
expect(payload.requestType).toBe('raw');
|
||||||
|
const builderQuery = payload.compositeQuery.queries.find(
|
||||||
|
(q) => q.type === 'builder_query',
|
||||||
|
) as QueryEnvelope;
|
||||||
|
// For RAW request type, aggregations should be omitted
|
||||||
|
const logSpec = builderQuery.spec as LogBuilderQuery;
|
||||||
|
expect(logSpec.aggregations).toBeUndefined();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('maps groupBy, order, having, aggregations and filter for logs builder query', () => {
|
||||||
|
const getStartEndRangeTime = jest.requireMock('lib/getStartEndRangeTime')
|
||||||
|
.default as jest.Mock;
|
||||||
|
getStartEndRangeTime.mockReturnValueOnce({
|
||||||
|
start: '1754623641',
|
||||||
|
end: '1754645241',
|
||||||
|
});
|
||||||
|
|
||||||
|
const props: GetQueryResultsProps = {
|
||||||
|
query: {
|
||||||
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
|
id: 'e643e387-1996-4449-97b6-9ef4498a0573',
|
||||||
|
unit: undefined,
|
||||||
|
promql: [{ name: 'A', query: '', legend: '', disabled: false }],
|
||||||
|
clickhouse_sql: [{ name: 'A', legend: '', disabled: false, query: '' }],
|
||||||
|
builder: {
|
||||||
|
queryData: [
|
||||||
|
{
|
||||||
|
dataSource: DataSource.LOGS,
|
||||||
|
queryName: 'A',
|
||||||
|
aggregateOperator: 'count',
|
||||||
|
aggregateAttribute: {
|
||||||
|
key: '',
|
||||||
|
dataType: DataTypes.EMPTY,
|
||||||
|
type: '',
|
||||||
|
},
|
||||||
|
timeAggregation: 'rate',
|
||||||
|
spaceAggregation: 'sum',
|
||||||
|
filter: { expression: "service.name = 'adservice'" },
|
||||||
|
aggregations: [
|
||||||
|
{ expression: 'count() as cnt avg(code.lineno) ' } as LogAggregation,
|
||||||
|
],
|
||||||
|
functions: [],
|
||||||
|
filters: {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '14c790ec-54d1-42f0-a889-3b4f0fb79852',
|
||||||
|
op: '=',
|
||||||
|
key: { id: 'service.name', key: 'service.name', type: '' },
|
||||||
|
value: 'adservice',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
},
|
||||||
|
expression: 'A',
|
||||||
|
disabled: false,
|
||||||
|
stepInterval: 80,
|
||||||
|
having: { expression: 'count() > 0' },
|
||||||
|
limit: 600,
|
||||||
|
orderBy: [{ columnName: 'service.name', order: 'desc' }],
|
||||||
|
groupBy: [
|
||||||
|
{
|
||||||
|
key: 'service.name',
|
||||||
|
type: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
legend: '{{service.name}}',
|
||||||
|
reduceTo: 'avg',
|
||||||
|
offset: 0,
|
||||||
|
pageSize: 100,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
queryFormulas: [],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
graphType: PANEL_TYPES.TIME_SERIES,
|
||||||
|
selectedTime: 'GLOBAL_TIME',
|
||||||
|
globalSelectedInterval: 'custom' as never,
|
||||||
|
variables: {},
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = prepareQueryRangePayloadV5(props);
|
||||||
|
|
||||||
|
expect(result).toEqual(
|
||||||
|
expect.objectContaining({
|
||||||
|
legendMap: { A: '{{service.name}}' },
|
||||||
|
queryPayload: expect.objectContaining({
|
||||||
|
schemaVersion: 'v1',
|
||||||
|
start: 1754623641000,
|
||||||
|
end: 1754645241000,
|
||||||
|
requestType: 'time_series',
|
||||||
|
compositeQuery: expect.objectContaining({
|
||||||
|
queries: [
|
||||||
|
{
|
||||||
|
type: 'builder_query',
|
||||||
|
spec: expect.objectContaining({
|
||||||
|
name: 'A',
|
||||||
|
signal: 'logs',
|
||||||
|
stepInterval: 80,
|
||||||
|
disabled: false,
|
||||||
|
filter: { expression: "service.name = 'adservice'" },
|
||||||
|
groupBy: [
|
||||||
|
{
|
||||||
|
name: 'service.name',
|
||||||
|
fieldDataType: '',
|
||||||
|
fieldContext: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
limit: 600,
|
||||||
|
order: [
|
||||||
|
{
|
||||||
|
key: { name: 'service.name' },
|
||||||
|
direction: 'desc',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
legend: '{{service.name}}',
|
||||||
|
having: { expression: 'count() > 0' },
|
||||||
|
aggregations: [
|
||||||
|
{ expression: 'count()', alias: 'cnt' },
|
||||||
|
{ expression: 'avg(code.lineno)' },
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
formatOptions: { formatTableResultForUI: false, fillGaps: false },
|
||||||
|
variables: {},
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -66,9 +66,46 @@ function getSignalType(dataSource: string): 'traces' | 'logs' | 'metrics' {
|
|||||||
return 'metrics';
|
return 'metrics';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
function isDeprecatedField(fieldName: string): boolean {
|
||||||
* Creates base spec for builder queries
|
const deprecatedIntrinsicFields = [
|
||||||
*/
|
'traceID',
|
||||||
|
'spanID',
|
||||||
|
'parentSpanID',
|
||||||
|
'spanKind',
|
||||||
|
'durationNano',
|
||||||
|
'statusCode',
|
||||||
|
'statusMessage',
|
||||||
|
'statusCodeString',
|
||||||
|
];
|
||||||
|
|
||||||
|
const deprecatedCalculatedFields = [
|
||||||
|
'responseStatusCode',
|
||||||
|
'externalHttpUrl',
|
||||||
|
'httpUrl',
|
||||||
|
'externalHttpMethod',
|
||||||
|
'httpMethod',
|
||||||
|
'httpHost',
|
||||||
|
'dbName',
|
||||||
|
'dbOperation',
|
||||||
|
'hasError',
|
||||||
|
'isRemote',
|
||||||
|
'serviceName',
|
||||||
|
'httpRoute',
|
||||||
|
'msgSystem',
|
||||||
|
'msgOperation',
|
||||||
|
'dbSystem',
|
||||||
|
'rpcSystem',
|
||||||
|
'rpcService',
|
||||||
|
'rpcMethod',
|
||||||
|
'peerService',
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
deprecatedIntrinsicFields.includes(fieldName) ||
|
||||||
|
deprecatedCalculatedFields.includes(fieldName)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function createBaseSpec(
|
function createBaseSpec(
|
||||||
queryData: IBuilderQuery,
|
queryData: IBuilderQuery,
|
||||||
requestType: RequestType,
|
requestType: RequestType,
|
||||||
@@ -80,7 +117,7 @@ function createBaseSpec(
|
|||||||
)[])?.filter((c) => ('key' in c ? c?.key : c?.name));
|
)[])?.filter((c) => ('key' in c ? c?.key : c?.name));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
stepInterval: queryData?.stepInterval || undefined,
|
stepInterval: queryData?.stepInterval || null,
|
||||||
disabled: queryData.disabled,
|
disabled: queryData.disabled,
|
||||||
filter: queryData?.filter?.expression ? queryData.filter : undefined,
|
filter: queryData?.filter?.expression ? queryData.filter : undefined,
|
||||||
groupBy:
|
groupBy:
|
||||||
@@ -88,8 +125,8 @@ function createBaseSpec(
|
|||||||
? queryData.groupBy.map(
|
? queryData.groupBy.map(
|
||||||
(item: any): GroupByKey => ({
|
(item: any): GroupByKey => ({
|
||||||
name: item.key,
|
name: item.key,
|
||||||
fieldDataType: item?.dataType,
|
fieldDataType: item?.dataType || '',
|
||||||
fieldContext: item?.type,
|
fieldContext: item?.type || '',
|
||||||
description: item?.description,
|
description: item?.description,
|
||||||
unit: item?.unit,
|
unit: item?.unit,
|
||||||
signal: item?.signal,
|
signal: item?.signal,
|
||||||
@@ -140,19 +177,33 @@ function createBaseSpec(
|
|||||||
selectFields: isEmpty(nonEmptySelectColumns)
|
selectFields: isEmpty(nonEmptySelectColumns)
|
||||||
? undefined
|
? undefined
|
||||||
: nonEmptySelectColumns?.map(
|
: nonEmptySelectColumns?.map(
|
||||||
(column: any): TelemetryFieldKey => ({
|
(column: any): TelemetryFieldKey => {
|
||||||
name: column.name ?? column.key,
|
const fieldName = column.name ?? column.key;
|
||||||
fieldDataType:
|
const isDeprecated = isDeprecatedField(fieldName);
|
||||||
column?.fieldDataType ?? (column?.dataType as FieldDataType),
|
|
||||||
fieldContext: column?.fieldContext ?? (column?.type as FieldContext),
|
const fieldObj: TelemetryFieldKey = {
|
||||||
signal: column?.signal ?? undefined,
|
name: fieldName,
|
||||||
}),
|
fieldDataType:
|
||||||
|
column?.fieldDataType ?? (column?.dataType as FieldDataType),
|
||||||
|
signal: column?.signal ?? undefined,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Only add fieldContext if the field is NOT deprecated
|
||||||
|
if (!isDeprecated && fieldName !== 'name') {
|
||||||
|
fieldObj.fieldContext =
|
||||||
|
column?.fieldContext ?? (column?.type as FieldContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
return fieldObj;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Utility to parse aggregation expressions with optional alias
|
// Utility to parse aggregation expressions with optional alias
|
||||||
export function parseAggregations(
|
export function parseAggregations(
|
||||||
expression: string,
|
expression: string,
|
||||||
|
availableAlias?: string,
|
||||||
): { expression: string; alias?: string }[] {
|
): { expression: string; alias?: string }[] {
|
||||||
const result: { expression: string; alias?: string }[] = [];
|
const result: { expression: string; alias?: string }[] = [];
|
||||||
// Matches function calls like "count()" or "sum(field)" with optional alias like "as 'alias'"
|
// Matches function calls like "count()" or "sum(field)" with optional alias like "as 'alias'"
|
||||||
@@ -161,7 +212,7 @@ export function parseAggregations(
|
|||||||
let match = regex.exec(expression);
|
let match = regex.exec(expression);
|
||||||
while (match !== null) {
|
while (match !== null) {
|
||||||
const expr = match[1];
|
const expr = match[1];
|
||||||
let alias = match[2];
|
let alias = match[2] || availableAlias; // Use provided alias or availableAlias if not matched
|
||||||
if (alias) {
|
if (alias) {
|
||||||
// Remove quotes if present
|
// Remove quotes if present
|
||||||
alias = alias.replace(/^['"]|['"]$/g, '');
|
alias = alias.replace(/^['"]|['"]$/g, '');
|
||||||
@@ -212,9 +263,14 @@ export function createAggregation(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (queryData.aggregations?.length > 0) {
|
if (queryData.aggregations?.length > 0) {
|
||||||
return isEmpty(parseAggregations(queryData.aggregations?.[0].expression))
|
return queryData.aggregations.flatMap(
|
||||||
? [{ expression: 'count()' }]
|
(agg: { expression: string; alias?: string }) => {
|
||||||
: parseAggregations(queryData.aggregations?.[0].expression);
|
const parsedAggregations = parseAggregations(agg.expression, agg?.alias);
|
||||||
|
return isEmpty(parsedAggregations)
|
||||||
|
? [{ expression: 'count()' }]
|
||||||
|
: parsedAggregations;
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [{ expression: 'count()' }];
|
return [{ expression: 'count()' }];
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
import { render, screen } from '@testing-library/react';
|
import { render, screen } from '@testing-library/react';
|
||||||
|
|
||||||
|
import getLocal from '../../../api/browser/localstorage/get';
|
||||||
import AppLoading from '../AppLoading';
|
import AppLoading from '../AppLoading';
|
||||||
|
|
||||||
// Mock the localStorage API
|
jest.mock('../../../api/browser/localstorage/get', () => ({
|
||||||
const mockGet = jest.fn();
|
|
||||||
jest.mock('api/browser/localstorage/get', () => ({
|
|
||||||
__esModule: true,
|
__esModule: true,
|
||||||
default: mockGet,
|
default: jest.fn(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// Access the mocked function
|
||||||
|
const mockGet = (getLocal as unknown) as jest.Mock;
|
||||||
|
|
||||||
describe('AppLoading', () => {
|
describe('AppLoading', () => {
|
||||||
const SIGNOZ_TEXT = 'SigNoz';
|
const SIGNOZ_TEXT = 'SigNoz';
|
||||||
const TAGLINE_TEXT =
|
const TAGLINE_TEXT =
|
||||||
|
|||||||
@@ -32,8 +32,6 @@ export const celeryAllStateWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -50,8 +48,6 @@ export const celeryAllStateWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -88,7 +84,6 @@ export const celeryRetryStateWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -103,8 +98,6 @@ export const celeryRetryStateWidgetData = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -119,8 +112,6 @@ export const celeryRetryStateWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.hostname--string--tag--false',
|
id: 'celery.hostname--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.hostname',
|
key: 'celery.hostname',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -153,8 +144,6 @@ export const celeryFailedStateWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -169,8 +158,6 @@ export const celeryFailedStateWidgetData = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -185,8 +172,6 @@ export const celeryFailedStateWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.hostname--string--tag--false',
|
id: 'celery.hostname--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.hostname',
|
key: 'celery.hostname',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -219,8 +204,6 @@ export const celerySuccessStateWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -235,8 +218,6 @@ export const celerySuccessStateWidgetData = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -251,8 +232,6 @@ export const celerySuccessStateWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.hostname--string--tag--false',
|
id: 'celery.hostname--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.hostname',
|
key: 'celery.hostname',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -284,7 +263,6 @@ export const celeryTasksByWorkerWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -301,8 +279,6 @@ export const celeryTasksByWorkerWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.hostname--string--tag--false',
|
id: 'celery.hostname--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.hostname',
|
key: 'celery.hostname',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -338,8 +314,6 @@ export const celeryErrorByWorkerWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
id: 'span_id--string----true',
|
id: 'span_id--string----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -353,8 +327,6 @@ export const celeryErrorByWorkerWidgetData = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.bool,
|
dataType: DataTypes.bool,
|
||||||
id: 'has_error--bool----true',
|
id: 'has_error--bool----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -373,8 +345,6 @@ export const celeryErrorByWorkerWidgetData = (
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.hostname',
|
key: 'celery.hostname',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
id: 'celery.hostname--string--tag--false',
|
id: 'celery.hostname--string--tag--false',
|
||||||
@@ -390,8 +360,6 @@ export const celeryErrorByWorkerWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
id: 'span_id--string----true',
|
id: 'span_id--string----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -411,8 +379,6 @@ export const celeryErrorByWorkerWidgetData = (
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.hostname',
|
key: 'celery.hostname',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
id: 'celery.hostname--string--tag--false',
|
id: 'celery.hostname--string--tag--false',
|
||||||
@@ -445,8 +411,6 @@ export const celeryLatencyByWorkerWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'duration_nano--float64----true',
|
id: 'duration_nano--float64----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -463,8 +427,6 @@ export const celeryLatencyByWorkerWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.hostname--string--tag--false',
|
id: 'celery.hostname--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.hostname',
|
key: 'celery.hostname',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -498,8 +460,6 @@ export const celeryActiveTasksWidgetData = (
|
|||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id:
|
id:
|
||||||
'flower_worker_number_of_currently_executing_tasks--float64--Gauge--true',
|
'flower_worker_number_of_currently_executing_tasks--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'flower_worker_number_of_currently_executing_tasks',
|
key: 'flower_worker_number_of_currently_executing_tasks',
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -516,8 +476,6 @@ export const celeryActiveTasksWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'worker--string--tag--false',
|
id: 'worker--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'worker',
|
key: 'worker',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -551,8 +509,6 @@ export const celeryTaskLatencyWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'duration_nano--float64----true',
|
id: 'duration_nano--float64----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -569,8 +525,6 @@ export const celeryTaskLatencyWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.task_name--string--tag--false',
|
id: 'celery.task_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.task_name',
|
key: 'celery.task_name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -606,8 +560,6 @@ export const celerySlowestTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'duration_nano--float64----true',
|
id: 'duration_nano--float64----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -624,8 +576,6 @@ export const celerySlowestTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.task_name--string--tag--false',
|
id: 'celery.task_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.task_name',
|
key: 'celery.task_name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -660,8 +610,6 @@ export const celeryRetryTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'duration_nano--float64----true',
|
id: 'duration_nano--float64----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -676,8 +624,6 @@ export const celeryRetryTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -692,8 +638,6 @@ export const celeryRetryTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.task_name--string--tag--false',
|
id: 'celery.task_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.task_name',
|
key: 'celery.task_name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -729,8 +673,6 @@ export const celeryFailedTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'duration_nano--float64----true',
|
id: 'duration_nano--float64----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -745,8 +687,6 @@ export const celeryFailedTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -761,8 +701,6 @@ export const celeryFailedTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.task_name--string--tag--false',
|
id: 'celery.task_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.task_name',
|
key: 'celery.task_name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -796,8 +734,6 @@ export const celerySuccessTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'duration_nano--float64----true',
|
id: 'duration_nano--float64----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -812,8 +748,6 @@ export const celerySuccessTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -828,8 +762,6 @@ export const celerySuccessTasksTableWidgetData = getWidgetQueryBuilder(
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.task_name--string--tag--false',
|
id: 'celery.task_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.task_name',
|
key: 'celery.task_name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -869,8 +801,6 @@ export const celeryTimeSeriesTablesWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'duration_nano--float64----true',
|
id: 'duration_nano--float64----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -885,8 +815,6 @@ export const celeryTimeSeriesTablesWidgetData = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: `${entity}--string--tag--false`,
|
id: `${entity}--string--tag--false`,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: `${entity}`,
|
key: `${entity}`,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -901,8 +829,6 @@ export const celeryTimeSeriesTablesWidgetData = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.task_name--string--tag--false',
|
id: 'celery.task_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.task_name',
|
key: 'celery.task_name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -933,8 +859,6 @@ export const celeryAllStateCountWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'span_id--string----true',
|
id: 'span_id--string----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -972,8 +896,6 @@ export const celerySuccessStateCountWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'span_id--string----true',
|
id: 'span_id--string----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -988,8 +910,6 @@ export const celerySuccessStateCountWidgetData = getWidgetQueryBuilder(
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1025,8 +945,6 @@ export const celeryFailedStateCountWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'span_id--string----true',
|
id: 'span_id--string----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1041,8 +959,6 @@ export const celeryFailedStateCountWidgetData = getWidgetQueryBuilder(
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1078,7 +994,6 @@ export const celeryRetryStateCountWidgetData = getWidgetQueryBuilder(
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'span_id--string----true',
|
id: 'span_id--string----true',
|
||||||
isColumn: true,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1093,8 +1008,6 @@ export const celeryRetryStateCountWidgetData = getWidgetQueryBuilder(
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'celery.state--string--tag--false',
|
id: 'celery.state--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'celery.state',
|
key: 'celery.state',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,8 +39,6 @@ export function getFiltersFromQueryParams(
|
|||||||
key,
|
key,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${key}--string--tag--false`,
|
id: `${key}--string--tag--false`,
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -100,8 +98,7 @@ export const createFiltersFromData = (
|
|||||||
key: string;
|
key: string;
|
||||||
dataType: DataTypes;
|
dataType: DataTypes;
|
||||||
type: string;
|
type: string;
|
||||||
isColumn: boolean;
|
|
||||||
isJSON: boolean;
|
|
||||||
id: string;
|
id: string;
|
||||||
};
|
};
|
||||||
op: string;
|
op: string;
|
||||||
@@ -119,8 +116,6 @@ export const createFiltersFromData = (
|
|||||||
key,
|
key,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${key}--string--tag--false`,
|
id: `${key}--string--tag--false`,
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -241,8 +241,6 @@ function ClientSideQBSearch(
|
|||||||
key: 'body',
|
key: 'body',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'body--string----true',
|
id: 'body--string----true',
|
||||||
},
|
},
|
||||||
op: OPERATORS.CONTAINS,
|
op: OPERATORS.CONTAINS,
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
.custom-time-picker {
|
.custom-time-picker {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
.timeSelection-input {
|
||||||
|
&:hover {
|
||||||
|
border-color: #1d212d !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.time-input-suffix {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-options-container {
|
.time-options-container {
|
||||||
@@ -135,6 +145,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
color: var(--bg-vanilla-400);
|
color: var(--bg-vanilla-400);
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
|
|
||||||
.timezone {
|
.timezone {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -163,6 +174,27 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.time-input-suffix-icon-badge {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0 4px;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: rgba(171, 189, 255, 0.04);
|
||||||
|
color: var(--bg-vanilla-100);
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 16px;
|
||||||
|
letter-spacing: -0.06px;
|
||||||
|
cursor: pointer;
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(171, 189, 255, 0.08);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.lightMode {
|
.lightMode {
|
||||||
.date-time-popover__footer {
|
.date-time-popover__footer {
|
||||||
border-color: var(--bg-vanilla-400);
|
border-color: var(--bg-vanilla-400);
|
||||||
@@ -180,8 +212,26 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-time-picker {
|
||||||
|
.timeSelection-input {
|
||||||
|
&:hover {
|
||||||
|
border-color: var(--bg-vanilla-300) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.timezone-badge {
|
.timezone-badge {
|
||||||
color: var(--bg-ink-100);
|
color: var(--bg-ink-100);
|
||||||
background: rgb(179 179 179 / 15%);
|
background: rgb(179 179 179 / 15%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.time-input-suffix-icon-badge {
|
||||||
|
color: var(--bg-ink-100);
|
||||||
|
background: rgb(179 179 179 / 15%);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgb(179 179 179 / 20%);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,13 +5,12 @@ import './CustomTimePicker.styles.scss';
|
|||||||
import { Input, Popover, Tooltip, Typography } from 'antd';
|
import { Input, Popover, Tooltip, Typography } from 'antd';
|
||||||
import logEvent from 'api/common/logEvent';
|
import logEvent from 'api/common/logEvent';
|
||||||
import cx from 'classnames';
|
import cx from 'classnames';
|
||||||
|
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
|
||||||
import { DateTimeRangeType } from 'container/TopNav/CustomDateTimeModal';
|
import { DateTimeRangeType } from 'container/TopNav/CustomDateTimeModal';
|
||||||
import {
|
import {
|
||||||
CustomTimeType,
|
|
||||||
FixedDurationSuggestionOptions,
|
FixedDurationSuggestionOptions,
|
||||||
Options,
|
Options,
|
||||||
RelativeDurationSuggestionOptions,
|
RelativeDurationSuggestionOptions,
|
||||||
Time,
|
|
||||||
} from 'container/TopNav/DateTimeSelectionV2/config';
|
} from 'container/TopNav/DateTimeSelectionV2/config';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { isValidTimeFormat } from 'lib/getMinMax';
|
import { isValidTimeFormat } from 'lib/getMinMax';
|
||||||
@@ -28,7 +27,10 @@ import {
|
|||||||
useMemo,
|
useMemo,
|
||||||
useState,
|
useState,
|
||||||
} from 'react';
|
} from 'react';
|
||||||
|
import { useSelector } from 'react-redux';
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
|
import { AppState } from 'store/reducers';
|
||||||
|
import { GlobalReducer } from 'types/reducer/globalTime';
|
||||||
import { popupContainer } from 'utils/selectPopupContainer';
|
import { popupContainer } from 'utils/selectPopupContainer';
|
||||||
|
|
||||||
import CustomTimePickerPopoverContent from './CustomTimePickerPopoverContent';
|
import CustomTimePickerPopoverContent from './CustomTimePickerPopoverContent';
|
||||||
@@ -58,10 +60,6 @@ interface CustomTimePickerProps {
|
|||||||
setCustomDTPickerVisible?: Dispatch<SetStateAction<boolean>>;
|
setCustomDTPickerVisible?: Dispatch<SetStateAction<boolean>>;
|
||||||
onCustomDateHandler?: (dateTimeRange: DateTimeRangeType) => void;
|
onCustomDateHandler?: (dateTimeRange: DateTimeRangeType) => void;
|
||||||
handleGoLive?: () => void;
|
handleGoLive?: () => void;
|
||||||
onTimeChange?: (
|
|
||||||
interval: Time | CustomTimeType,
|
|
||||||
dateTimeRange?: [number, number],
|
|
||||||
) => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function CustomTimePicker({
|
function CustomTimePicker({
|
||||||
@@ -79,13 +77,16 @@ function CustomTimePicker({
|
|||||||
setCustomDTPickerVisible,
|
setCustomDTPickerVisible,
|
||||||
onCustomDateHandler,
|
onCustomDateHandler,
|
||||||
handleGoLive,
|
handleGoLive,
|
||||||
onTimeChange,
|
|
||||||
}: CustomTimePickerProps): JSX.Element {
|
}: CustomTimePickerProps): JSX.Element {
|
||||||
const [
|
const [
|
||||||
selectedTimePlaceholderValue,
|
selectedTimePlaceholderValue,
|
||||||
setSelectedTimePlaceholderValue,
|
setSelectedTimePlaceholderValue,
|
||||||
] = useState('Select / Enter Time Range');
|
] = useState('Select / Enter Time Range');
|
||||||
|
|
||||||
|
const { maxTime, minTime } = useSelector<AppState, GlobalReducer>(
|
||||||
|
(state) => state.globalTime,
|
||||||
|
);
|
||||||
|
|
||||||
const [inputValue, setInputValue] = useState('');
|
const [inputValue, setInputValue] = useState('');
|
||||||
const [inputStatus, setInputStatus] = useState<'' | 'error' | 'success'>('');
|
const [inputStatus, setInputStatus] = useState<'' | 'error' | 'success'>('');
|
||||||
const [inputErrorMessage, setInputErrorMessage] = useState<string | null>(
|
const [inputErrorMessage, setInputErrorMessage] = useState<string | null>(
|
||||||
@@ -256,6 +257,11 @@ function CustomTimePicker({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleSelect = (label: string, value: string): void => {
|
const handleSelect = (label: string, value: string): void => {
|
||||||
|
if (label === 'Custom') {
|
||||||
|
setCustomDTPickerVisible?.(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
onSelect(value);
|
onSelect(value);
|
||||||
setSelectedTimePlaceholderValue(label);
|
setSelectedTimePlaceholderValue(label);
|
||||||
setInputStatus('');
|
setInputStatus('');
|
||||||
@@ -318,84 +324,105 @@ function CustomTimePicker({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const getTooltipTitle = (): string => {
|
||||||
|
if (selectedTime === 'custom' && inputValue === '' && !open) {
|
||||||
|
return `${dayjs(minTime / 1000_000)
|
||||||
|
.tz(timezone.value)
|
||||||
|
.format(DATE_TIME_FORMATS.DD_MMM_YYYY_HH_MM_SS)} - ${dayjs(
|
||||||
|
maxTime / 1000_000,
|
||||||
|
)
|
||||||
|
.tz(timezone.value)
|
||||||
|
.format(DATE_TIME_FORMATS.DD_MMM_YYYY_HH_MM_SS)}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return '';
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="custom-time-picker">
|
<div className="custom-time-picker">
|
||||||
<Popover
|
<Tooltip title={getTooltipTitle()} placement="top">
|
||||||
className={cx(
|
<Popover
|
||||||
'timeSelection-input-container',
|
className={cx(
|
||||||
selectedTime === 'custom' && inputValue === '' ? 'custom-time' : '',
|
'timeSelection-input-container',
|
||||||
)}
|
selectedTime === 'custom' && inputValue === '' ? 'custom-time' : '',
|
||||||
placement="bottomRight"
|
)}
|
||||||
getPopupContainer={popupContainer}
|
placement="bottomRight"
|
||||||
rootClassName="date-time-root"
|
getPopupContainer={popupContainer}
|
||||||
content={
|
rootClassName="date-time-root"
|
||||||
newPopover ? (
|
content={
|
||||||
<CustomTimePickerPopoverContent
|
newPopover ? (
|
||||||
setIsOpen={setOpen}
|
<CustomTimePickerPopoverContent
|
||||||
customDateTimeVisible={defaultTo(customDateTimeVisible, false)}
|
setIsOpen={setOpen}
|
||||||
setCustomDTPickerVisible={defaultTo(setCustomDTPickerVisible, noop)}
|
customDateTimeVisible={defaultTo(customDateTimeVisible, false)}
|
||||||
onCustomDateHandler={defaultTo(onCustomDateHandler, noop)}
|
setCustomDTPickerVisible={defaultTo(setCustomDTPickerVisible, noop)}
|
||||||
onSelectHandler={handleSelect}
|
onCustomDateHandler={defaultTo(onCustomDateHandler, noop)}
|
||||||
handleGoLive={defaultTo(handleGoLive, noop)}
|
onSelectHandler={handleSelect}
|
||||||
options={items}
|
handleGoLive={defaultTo(handleGoLive, noop)}
|
||||||
selectedTime={selectedTime}
|
options={items}
|
||||||
activeView={activeView}
|
selectedTime={selectedTime}
|
||||||
setActiveView={setActiveView}
|
activeView={activeView}
|
||||||
setIsOpenedFromFooter={setIsOpenedFromFooter}
|
setActiveView={setActiveView}
|
||||||
isOpenedFromFooter={isOpenedFromFooter}
|
setIsOpenedFromFooter={setIsOpenedFromFooter}
|
||||||
onTimeChange={onTimeChange}
|
isOpenedFromFooter={isOpenedFromFooter}
|
||||||
/>
|
/>
|
||||||
) : (
|
|
||||||
content
|
|
||||||
)
|
|
||||||
}
|
|
||||||
arrow={false}
|
|
||||||
trigger="click"
|
|
||||||
open={open}
|
|
||||||
onOpenChange={handleOpenChange}
|
|
||||||
style={{
|
|
||||||
padding: 0,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Input
|
|
||||||
className="timeSelection-input"
|
|
||||||
type="text"
|
|
||||||
status={inputValue && inputStatus === 'error' ? 'error' : ''}
|
|
||||||
placeholder={
|
|
||||||
isInputFocused
|
|
||||||
? 'Time Format (1m or 2h or 3d or 4w)'
|
|
||||||
: selectedTimePlaceholderValue
|
|
||||||
}
|
|
||||||
value={inputValue}
|
|
||||||
onFocus={handleFocus}
|
|
||||||
onBlur={handleBlur}
|
|
||||||
onChange={handleInputChange}
|
|
||||||
data-1p-ignore
|
|
||||||
prefix={
|
|
||||||
inputValue && inputStatus === 'success' ? (
|
|
||||||
<CheckCircle size={14} color="#51E7A8" />
|
|
||||||
) : (
|
) : (
|
||||||
<Tooltip title="Enter time in format (e.g., 1m, 2h, 3d, 4w)">
|
content
|
||||||
<Clock size={14} />
|
|
||||||
</Tooltip>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
suffix={
|
arrow={false}
|
||||||
<>
|
trigger="click"
|
||||||
{!!isTimezoneOverridden && activeTimezoneOffset && (
|
open={open}
|
||||||
<div className="timezone-badge" onClick={handleTimezoneHintClick}>
|
onOpenChange={handleOpenChange}
|
||||||
<span>{activeTimezoneOffset}</span>
|
style={{
|
||||||
</div>
|
padding: 0,
|
||||||
)}
|
}}
|
||||||
<ChevronDown
|
>
|
||||||
size={14}
|
<Input
|
||||||
onClick={(): void => handleViewChange('datetime')}
|
className="timeSelection-input"
|
||||||
/>
|
type="text"
|
||||||
</>
|
status={inputValue && inputStatus === 'error' ? 'error' : ''}
|
||||||
}
|
placeholder={
|
||||||
/>
|
isInputFocused
|
||||||
</Popover>
|
? 'Time Format (1m or 2h or 3d or 4w)'
|
||||||
|
: selectedTimePlaceholderValue
|
||||||
|
}
|
||||||
|
value={inputValue}
|
||||||
|
onFocus={handleFocus}
|
||||||
|
onClick={handleFocus}
|
||||||
|
onBlur={handleBlur}
|
||||||
|
onChange={handleInputChange}
|
||||||
|
data-1p-ignore
|
||||||
|
prefix={
|
||||||
|
<div className="time-input-prefix">
|
||||||
|
{inputValue && inputStatus === 'success' ? (
|
||||||
|
<CheckCircle size={14} color="#51E7A8" />
|
||||||
|
) : (
|
||||||
|
<Tooltip title="Enter time in format (e.g., 1m, 2h, 3d, 4w)">
|
||||||
|
<Clock size={14} className="cursor-pointer" />
|
||||||
|
</Tooltip>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
suffix={
|
||||||
|
<div className="time-input-suffix">
|
||||||
|
{!!isTimezoneOverridden && activeTimezoneOffset && (
|
||||||
|
<div className="timezone-badge" onClick={handleTimezoneHintClick}>
|
||||||
|
<span>{activeTimezoneOffset}</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<ChevronDown
|
||||||
|
size={14}
|
||||||
|
className="cursor-pointer time-input-suffix-icon-badge"
|
||||||
|
onClick={(e): void => {
|
||||||
|
e.stopPropagation();
|
||||||
|
handleViewChange('datetime');
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</Popover>
|
||||||
|
</Tooltip>
|
||||||
{inputStatus === 'error' && inputErrorMessage && (
|
{inputStatus === 'error' && inputErrorMessage && (
|
||||||
<Typography.Title level={5} className="valid-format-error">
|
<Typography.Title level={5} className="valid-format-error">
|
||||||
{inputErrorMessage}
|
{inputErrorMessage}
|
||||||
@@ -414,5 +441,4 @@ CustomTimePicker.defaultProps = {
|
|||||||
onCustomDateHandler: noop,
|
onCustomDateHandler: noop,
|
||||||
handleGoLive: noop,
|
handleGoLive: noop,
|
||||||
onCustomTimeStatusUpdate: noop,
|
onCustomTimeStatusUpdate: noop,
|
||||||
onTimeChange: undefined,
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,21 +4,22 @@ import { Color } from '@signozhq/design-tokens';
|
|||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
import logEvent from 'api/common/logEvent';
|
import logEvent from 'api/common/logEvent';
|
||||||
import cx from 'classnames';
|
import cx from 'classnames';
|
||||||
|
import DatePickerV2 from 'components/DatePickerV2/DatePickerV2';
|
||||||
|
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
|
||||||
import ROUTES from 'constants/routes';
|
import ROUTES from 'constants/routes';
|
||||||
import { DateTimeRangeType } from 'container/TopNav/CustomDateTimeModal';
|
import { DateTimeRangeType } from 'container/TopNav/CustomDateTimeModal';
|
||||||
import {
|
import {
|
||||||
CustomTimeType,
|
|
||||||
LexicalContext,
|
LexicalContext,
|
||||||
Option,
|
Option,
|
||||||
RelativeDurationSuggestionOptions,
|
RelativeDurationSuggestionOptions,
|
||||||
Time,
|
|
||||||
} from 'container/TopNav/DateTimeSelectionV2/config';
|
} from 'container/TopNav/DateTimeSelectionV2/config';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
import { Clock, PenLine } from 'lucide-react';
|
import { Clock, PenLine } from 'lucide-react';
|
||||||
import { useTimezone } from 'providers/Timezone';
|
import { useTimezone } from 'providers/Timezone';
|
||||||
import { Dispatch, SetStateAction, useMemo } from 'react';
|
import { Dispatch, SetStateAction, useEffect, useMemo, useState } from 'react';
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
|
import { getCustomTimeRanges } from 'utils/customTimeRangeUtils';
|
||||||
|
|
||||||
import RangePickerModal from './RangePickerModal';
|
|
||||||
import TimezonePicker from './TimezonePicker';
|
import TimezonePicker from './TimezonePicker';
|
||||||
|
|
||||||
interface CustomTimePickerPopoverContentProps {
|
interface CustomTimePickerPopoverContentProps {
|
||||||
@@ -37,10 +38,14 @@ interface CustomTimePickerPopoverContentProps {
|
|||||||
setActiveView: Dispatch<SetStateAction<'datetime' | 'timezone'>>;
|
setActiveView: Dispatch<SetStateAction<'datetime' | 'timezone'>>;
|
||||||
isOpenedFromFooter: boolean;
|
isOpenedFromFooter: boolean;
|
||||||
setIsOpenedFromFooter: Dispatch<SetStateAction<boolean>>;
|
setIsOpenedFromFooter: Dispatch<SetStateAction<boolean>>;
|
||||||
onTimeChange?: (
|
}
|
||||||
interval: Time | CustomTimeType,
|
|
||||||
dateTimeRange?: [number, number],
|
interface RecentlyUsedDateTimeRange {
|
||||||
) => void;
|
label: string;
|
||||||
|
value: number;
|
||||||
|
timestamp: number;
|
||||||
|
from: string;
|
||||||
|
to: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line sonarjs/cognitive-complexity
|
// eslint-disable-next-line sonarjs/cognitive-complexity
|
||||||
@@ -57,16 +62,42 @@ function CustomTimePickerPopoverContent({
|
|||||||
setActiveView,
|
setActiveView,
|
||||||
isOpenedFromFooter,
|
isOpenedFromFooter,
|
||||||
setIsOpenedFromFooter,
|
setIsOpenedFromFooter,
|
||||||
onTimeChange,
|
|
||||||
}: CustomTimePickerPopoverContentProps): JSX.Element {
|
}: CustomTimePickerPopoverContentProps): JSX.Element {
|
||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
|
|
||||||
const isLogsExplorerPage = useMemo(() => pathname === ROUTES.LOGS_EXPLORER, [
|
const isLogsExplorerPage = useMemo(() => pathname === ROUTES.LOGS_EXPLORER, [
|
||||||
pathname,
|
pathname,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const { timezone } = useTimezone();
|
const { timezone } = useTimezone();
|
||||||
const activeTimezoneOffset = timezone.offset;
|
const activeTimezoneOffset = timezone.offset;
|
||||||
|
|
||||||
|
const [recentlyUsedTimeRanges, setRecentlyUsedTimeRanges] = useState<
|
||||||
|
RecentlyUsedDateTimeRange[]
|
||||||
|
>([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!customDateTimeVisible) {
|
||||||
|
const customTimeRanges = getCustomTimeRanges();
|
||||||
|
|
||||||
|
const formattedCustomTimeRanges: RecentlyUsedDateTimeRange[] = customTimeRanges.map(
|
||||||
|
(range) => ({
|
||||||
|
label: `${dayjs(range.from)
|
||||||
|
.tz(timezone.value)
|
||||||
|
.format(DATE_TIME_FORMATS.DD_MMM_YYYY_HH_MM_SS)} - ${dayjs(range.to)
|
||||||
|
.tz(timezone.value)
|
||||||
|
.format(DATE_TIME_FORMATS.DD_MMM_YYYY_HH_MM_SS)}`,
|
||||||
|
from: range.from,
|
||||||
|
to: range.to,
|
||||||
|
value: range.timestamp,
|
||||||
|
timestamp: range.timestamp,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
setRecentlyUsedTimeRanges(formattedCustomTimeRanges);
|
||||||
|
}
|
||||||
|
}, [customDateTimeVisible, timezone.value]);
|
||||||
|
|
||||||
function getTimeChips(options: Option[]): JSX.Element {
|
function getTimeChips(options: Option[]): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<div className="relative-date-time-section">
|
<div className="relative-date-time-section">
|
||||||
@@ -112,50 +143,77 @@ function CustomTimePickerPopoverContent({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="date-time-popover">
|
<div className="date-time-popover">
|
||||||
<div className="date-time-options">
|
{!customDateTimeVisible && (
|
||||||
{isLogsExplorerPage && (
|
<div className="date-time-options">
|
||||||
<Button className="data-time-live" type="text" onClick={handleGoLive}>
|
{isLogsExplorerPage && (
|
||||||
Live
|
<Button className="data-time-live" type="text" onClick={handleGoLive}>
|
||||||
</Button>
|
Live
|
||||||
)}
|
</Button>
|
||||||
{options.map((option) => (
|
)}
|
||||||
<Button
|
{options.map((option) => (
|
||||||
type="text"
|
<Button
|
||||||
key={option.label + option.value}
|
type="text"
|
||||||
onClick={(): void => {
|
key={option.label + option.value}
|
||||||
onSelectHandler(option.label, option.value);
|
onClick={(): void => {
|
||||||
}}
|
onSelectHandler(option.label, option.value);
|
||||||
className={cx(
|
}}
|
||||||
'date-time-options-btn',
|
className={cx(
|
||||||
customDateTimeVisible
|
'date-time-options-btn',
|
||||||
? option.value === 'custom' && 'active'
|
customDateTimeVisible
|
||||||
: selectedTime === option.value && 'active',
|
? option.value === 'custom' && 'active'
|
||||||
)}
|
: selectedTime === option.value && 'active',
|
||||||
>
|
)}
|
||||||
{option.label}
|
>
|
||||||
</Button>
|
{option.label}
|
||||||
))}
|
</Button>
|
||||||
</div>
|
))}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={cx(
|
className={cx(
|
||||||
'relative-date-time',
|
'relative-date-time',
|
||||||
selectedTime === 'custom' || customDateTimeVisible
|
customDateTimeVisible ? 'date-picker' : 'relative-times',
|
||||||
? 'date-picker'
|
|
||||||
: 'relative-times',
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{selectedTime === 'custom' || customDateTimeVisible ? (
|
{customDateTimeVisible ? (
|
||||||
<RangePickerModal
|
<DatePickerV2
|
||||||
setCustomDTPickerVisible={setCustomDTPickerVisible}
|
onSetCustomDTPickerVisible={setCustomDTPickerVisible}
|
||||||
setIsOpen={setIsOpen}
|
setIsOpen={setIsOpen}
|
||||||
onCustomDateHandler={onCustomDateHandler}
|
onCustomDateHandler={onCustomDateHandler}
|
||||||
selectedTime={selectedTime}
|
|
||||||
onTimeChange={onTimeChange}
|
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="relative-times-container">
|
<div className="time-selector-container">
|
||||||
<div className="time-heading">RELATIVE TIMES</div>
|
<div className="relative-times-container">
|
||||||
<div>{getTimeChips(RelativeDurationSuggestionOptions)}</div>
|
<div className="time-heading">RELATIVE TIMES</div>
|
||||||
|
<div>{getTimeChips(RelativeDurationSuggestionOptions)}</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="recently-used-container">
|
||||||
|
<div className="time-heading">RECENTLY USED</div>
|
||||||
|
<div className="recently-used-range">
|
||||||
|
{recentlyUsedTimeRanges.map((range: RecentlyUsedDateTimeRange) => (
|
||||||
|
<div
|
||||||
|
className="recently-used-range-item"
|
||||||
|
role="button"
|
||||||
|
tabIndex={0}
|
||||||
|
onKeyDown={(e): void => {
|
||||||
|
if (e.key === 'Enter' || e.key === ' ') {
|
||||||
|
onCustomDateHandler([dayjs(range.from), dayjs(range.to)]);
|
||||||
|
setIsOpen(false);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
key={range.value}
|
||||||
|
onClick={(): void => {
|
||||||
|
onCustomDateHandler([dayjs(range.from), dayjs(range.to)]);
|
||||||
|
setIsOpen(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{range.label}
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -189,8 +247,4 @@ function CustomTimePickerPopoverContent({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomTimePickerPopoverContent.defaultProps = {
|
|
||||||
onTimeChange: undefined,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default CustomTimePickerPopoverContent;
|
export default CustomTimePickerPopoverContent;
|
||||||
|
|||||||
114
frontend/src/components/DatePickerV2/DatePickerV2.styles.scss
Normal file
114
frontend/src/components/DatePickerV2/DatePickerV2.styles.scss
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
.date-picker-v2-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-date-time-picker-v2 {
|
||||||
|
padding: 12px;
|
||||||
|
|
||||||
|
.periscope-calendar {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: none !important;
|
||||||
|
background: none !important;
|
||||||
|
padding: 8px 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.periscope-calendar-day {
|
||||||
|
background: none !important;
|
||||||
|
|
||||||
|
&.periscope-calendar-today {
|
||||||
|
&.text-accent-foreground {
|
||||||
|
color: var(--bg-vanilla-100) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--bg-robin-500) !important;
|
||||||
|
color: var(--bg-vanilla-100) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-time-selector {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 16px;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.time-input {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: none !important;
|
||||||
|
background: none !important;
|
||||||
|
padding: 8px 4px !important;
|
||||||
|
color: var(--bg-vanilla-100) !important;
|
||||||
|
|
||||||
|
&::-webkit-calendar-picker-indicator {
|
||||||
|
display: none !important;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border: none !important;
|
||||||
|
outline: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
border: none !important;
|
||||||
|
outline: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-date-time-picker-footer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-top: 16px;
|
||||||
|
|
||||||
|
.next-btn {
|
||||||
|
width: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clear-btn {
|
||||||
|
width: 80px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.invalid-date-range-tooltip {
|
||||||
|
.ant-tooltip-inner {
|
||||||
|
color: var(--bg-sakura-500) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lightMode {
|
||||||
|
.custom-date-time-picker-v2 {
|
||||||
|
.periscope-calendar-day {
|
||||||
|
&.periscope-calendar-today {
|
||||||
|
&.text-accent-foreground {
|
||||||
|
color: var(--bg-ink-500) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--bg-robin-500) !important;
|
||||||
|
color: var(--bg-ink-500) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-time-selector {
|
||||||
|
.time-input {
|
||||||
|
color: var(--bg-ink-500) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
311
frontend/src/components/DatePickerV2/DatePickerV2.tsx
Normal file
311
frontend/src/components/DatePickerV2/DatePickerV2.tsx
Normal file
@@ -0,0 +1,311 @@
|
|||||||
|
import './DatePickerV2.styles.scss';
|
||||||
|
|
||||||
|
import { Calendar } from '@signozhq/calendar';
|
||||||
|
import { Input } from '@signozhq/input';
|
||||||
|
import { Button, Tooltip } from 'antd';
|
||||||
|
import cx from 'classnames';
|
||||||
|
import { DateTimeRangeType } from 'container/TopNav/CustomDateTimeModal';
|
||||||
|
import { LexicalContext } from 'container/TopNav/DateTimeSelectionV2/config';
|
||||||
|
import dayjs, { Dayjs } from 'dayjs';
|
||||||
|
import { CornerUpLeft, MoveRight } from 'lucide-react';
|
||||||
|
import { useTimezone } from 'providers/Timezone';
|
||||||
|
import { useRef, useState } from 'react';
|
||||||
|
import { useSelector } from 'react-redux';
|
||||||
|
import { AppState } from 'store/reducers';
|
||||||
|
import { GlobalReducer } from 'types/reducer/globalTime';
|
||||||
|
import { addCustomTimeRange } from 'utils/customTimeRangeUtils';
|
||||||
|
|
||||||
|
function DatePickerV2({
|
||||||
|
onSetCustomDTPickerVisible,
|
||||||
|
setIsOpen,
|
||||||
|
onCustomDateHandler,
|
||||||
|
}: {
|
||||||
|
onSetCustomDTPickerVisible: (visible: boolean) => void;
|
||||||
|
setIsOpen: (isOpen: boolean) => void;
|
||||||
|
onCustomDateHandler: (
|
||||||
|
dateTimeRange: DateTimeRangeType,
|
||||||
|
lexicalContext?: LexicalContext,
|
||||||
|
) => void;
|
||||||
|
}): JSX.Element {
|
||||||
|
const { maxTime, minTime } = useSelector<AppState, GlobalReducer>(
|
||||||
|
(state) => state.globalTime,
|
||||||
|
);
|
||||||
|
|
||||||
|
const timeInputRef = useRef<HTMLInputElement>(null);
|
||||||
|
|
||||||
|
const { timezone } = useTimezone();
|
||||||
|
|
||||||
|
const [selectedDateTimeFor, setSelectedDateTimeFor] = useState<'to' | 'from'>(
|
||||||
|
'from',
|
||||||
|
);
|
||||||
|
|
||||||
|
const [selectedFromDateTime, setSelectedFromDateTime] = useState<Dayjs | null>(
|
||||||
|
dayjs(minTime / 1000_000).tz(timezone.value),
|
||||||
|
);
|
||||||
|
|
||||||
|
const [selectedToDateTime, setSelectedToDateTime] = useState<Dayjs | null>(
|
||||||
|
dayjs(maxTime / 1000_000).tz(timezone.value),
|
||||||
|
);
|
||||||
|
|
||||||
|
const handleNext = (): void => {
|
||||||
|
if (selectedDateTimeFor === 'to') {
|
||||||
|
onCustomDateHandler([selectedFromDateTime, selectedToDateTime]);
|
||||||
|
|
||||||
|
addCustomTimeRange([selectedFromDateTime, selectedToDateTime]);
|
||||||
|
|
||||||
|
setIsOpen(false);
|
||||||
|
onSetCustomDTPickerVisible(false);
|
||||||
|
setSelectedDateTimeFor('from');
|
||||||
|
} else {
|
||||||
|
setSelectedDateTimeFor('to');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleDateChange = (date: Date | undefined): void => {
|
||||||
|
if (!date) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selectedDateTimeFor === 'from') {
|
||||||
|
const prevFromDateTime = selectedFromDateTime;
|
||||||
|
|
||||||
|
const newDate = dayjs(date);
|
||||||
|
|
||||||
|
const updatedFromDateTime = prevFromDateTime
|
||||||
|
? prevFromDateTime
|
||||||
|
.year(newDate.year())
|
||||||
|
.month(newDate.month())
|
||||||
|
.date(newDate.date())
|
||||||
|
: dayjs(date).tz(timezone.value);
|
||||||
|
|
||||||
|
setSelectedFromDateTime(updatedFromDateTime);
|
||||||
|
} else {
|
||||||
|
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||||
|
setSelectedToDateTime((prev) => {
|
||||||
|
const newDate = dayjs(date);
|
||||||
|
|
||||||
|
// Update only the date part, keeping time from existing state
|
||||||
|
return prev
|
||||||
|
? prev.year(newDate.year()).month(newDate.month()).date(newDate.date())
|
||||||
|
: dayjs(date).tz(timezone.value);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// focus the time input
|
||||||
|
timeInputRef?.current?.focus();
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleTimeChange = (time: string): void => {
|
||||||
|
// time should have format HH:mm:ss
|
||||||
|
if (!/^\d{2}:\d{2}:\d{2}$/.test(time)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selectedDateTimeFor === 'from') {
|
||||||
|
setSelectedFromDateTime((prev) => {
|
||||||
|
if (prev) {
|
||||||
|
return prev
|
||||||
|
.set('hour', parseInt(time.split(':')[0], 10))
|
||||||
|
.set('minute', parseInt(time.split(':')[1], 10))
|
||||||
|
.set('second', parseInt(time.split(':')[2], 10));
|
||||||
|
}
|
||||||
|
|
||||||
|
return prev;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (selectedDateTimeFor === 'to') {
|
||||||
|
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||||
|
setSelectedToDateTime((prev) => {
|
||||||
|
if (prev) {
|
||||||
|
return prev
|
||||||
|
.set('hour', parseInt(time.split(':')[0], 10))
|
||||||
|
.set('minute', parseInt(time.split(':')[1], 10))
|
||||||
|
.set('second', parseInt(time.split(':')[2], 10));
|
||||||
|
}
|
||||||
|
|
||||||
|
return prev;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const getDefaultMonth = (): Date => {
|
||||||
|
let defaultDate = null;
|
||||||
|
|
||||||
|
if (selectedDateTimeFor === 'from') {
|
||||||
|
defaultDate = selectedFromDateTime?.toDate();
|
||||||
|
} else if (selectedDateTimeFor === 'to') {
|
||||||
|
defaultDate = selectedToDateTime?.toDate();
|
||||||
|
}
|
||||||
|
|
||||||
|
return defaultDate ?? new Date();
|
||||||
|
};
|
||||||
|
|
||||||
|
const isValidRange = (): boolean => {
|
||||||
|
if (selectedDateTimeFor === 'to') {
|
||||||
|
return selectedToDateTime?.isAfter(selectedFromDateTime) ?? false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleBack = (): void => {
|
||||||
|
setSelectedDateTimeFor('from');
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleHideCustomDTPicker = (): void => {
|
||||||
|
onSetCustomDTPickerVisible(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleSelectDateTimeFor = (selectedDateTimeFor: 'to' | 'from'): void => {
|
||||||
|
setSelectedDateTimeFor(selectedDateTimeFor);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="date-picker-v2-container">
|
||||||
|
<div className="date-time-custom-options-container">
|
||||||
|
<div
|
||||||
|
className="back-btn"
|
||||||
|
onClick={handleHideCustomDTPicker}
|
||||||
|
role="button"
|
||||||
|
tabIndex={0}
|
||||||
|
onKeyDown={(e): void => {
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
handleHideCustomDTPicker();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CornerUpLeft size={16} />
|
||||||
|
<span>Back</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="date-time-custom-options">
|
||||||
|
<div
|
||||||
|
role="button"
|
||||||
|
tabIndex={0}
|
||||||
|
onKeyDown={(e): void => {
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
handleSelectDateTimeFor('from');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
className={cx(
|
||||||
|
'date-time-custom-option-from',
|
||||||
|
selectedDateTimeFor === 'from' && 'active',
|
||||||
|
)}
|
||||||
|
onClick={(): void => {
|
||||||
|
handleSelectDateTimeFor('from');
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="date-time-custom-option-from-title">FROM</div>
|
||||||
|
<div className="date-time-custom-option-from-value">
|
||||||
|
{selectedFromDateTime?.format('YYYY-MM-DD HH:mm:ss')}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
role="button"
|
||||||
|
tabIndex={0}
|
||||||
|
onKeyDown={(e): void => {
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
handleSelectDateTimeFor('to');
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
className={cx(
|
||||||
|
'date-time-custom-option-to',
|
||||||
|
selectedDateTimeFor === 'to' && 'active',
|
||||||
|
)}
|
||||||
|
onClick={(): void => {
|
||||||
|
handleSelectDateTimeFor('to');
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="date-time-custom-option-to-title">TO</div>
|
||||||
|
<div className="date-time-custom-option-to-value">
|
||||||
|
{selectedToDateTime?.format('YYYY-MM-DD HH:mm:ss')}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="custom-date-time-picker-v2">
|
||||||
|
<Calendar
|
||||||
|
mode="single"
|
||||||
|
required
|
||||||
|
selected={
|
||||||
|
selectedDateTimeFor === 'from'
|
||||||
|
? selectedFromDateTime?.toDate()
|
||||||
|
: selectedToDateTime?.toDate()
|
||||||
|
}
|
||||||
|
key={selectedDateTimeFor + selectedDateTimeFor}
|
||||||
|
onSelect={handleDateChange}
|
||||||
|
defaultMonth={getDefaultMonth()}
|
||||||
|
disabled={(current): boolean => {
|
||||||
|
if (selectedDateTimeFor === 'to') {
|
||||||
|
// disable dates after today and before selectedFromDateTime
|
||||||
|
const currentDay = dayjs(current);
|
||||||
|
return currentDay.isAfter(dayjs()) || false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selectedDateTimeFor === 'from') {
|
||||||
|
// disable dates after selectedToDateTime
|
||||||
|
|
||||||
|
return dayjs(current).isAfter(dayjs()) || false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}}
|
||||||
|
className="rounded-md border"
|
||||||
|
navLayout="after"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div className="custom-time-selector">
|
||||||
|
<label className="text-xs font-normal block" htmlFor="time-picker">
|
||||||
|
Timestamp
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<MoveRight size={16} />
|
||||||
|
|
||||||
|
<div className="time-input-container">
|
||||||
|
<Input
|
||||||
|
type="time"
|
||||||
|
ref={timeInputRef}
|
||||||
|
className="time-input"
|
||||||
|
value={
|
||||||
|
selectedDateTimeFor === 'from'
|
||||||
|
? selectedFromDateTime?.format('HH:mm:ss')
|
||||||
|
: selectedToDateTime?.format('HH:mm:ss')
|
||||||
|
}
|
||||||
|
onChange={(e): void => handleTimeChange(e.target.value)}
|
||||||
|
step="1"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="custom-date-time-picker-footer">
|
||||||
|
{selectedDateTimeFor === 'to' && (
|
||||||
|
<Button
|
||||||
|
className="periscope-btn secondary clear-btn"
|
||||||
|
type="default"
|
||||||
|
onClick={handleBack}
|
||||||
|
>
|
||||||
|
Back
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
<Tooltip
|
||||||
|
title={
|
||||||
|
!isValidRange() ? 'Invalid range: TO date should be after FROM date' : ''
|
||||||
|
}
|
||||||
|
overlayClassName="invalid-date-range-tooltip"
|
||||||
|
>
|
||||||
|
<Button
|
||||||
|
className="periscope-btn primary next-btn"
|
||||||
|
type="primary"
|
||||||
|
onClick={handleNext}
|
||||||
|
disabled={!isValidRange()}
|
||||||
|
>
|
||||||
|
{selectedDateTimeFor === 'from' ? 'Next' : 'Apply'}
|
||||||
|
</Button>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default DatePickerV2;
|
||||||
@@ -55,37 +55,31 @@ export const selectedColumns: BaseAutocompleteData[] = [
|
|||||||
key: 'timestamp',
|
key: 'timestamp',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'serviceName',
|
key: 'serviceName',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'name',
|
key: 'name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'durationNano',
|
key: 'durationNano',
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'httpMethod',
|
key: 'httpMethod',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'responseStatusCode',
|
key: 'responseStatusCode',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -108,9 +102,7 @@ export const getHostTracesQueryPayload = (
|
|||||||
id: '------false',
|
id: '------false',
|
||||||
dataType: DataTypes.EMPTY,
|
dataType: DataTypes.EMPTY,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
timeAggregation: 'rate',
|
timeAggregation: 'rate',
|
||||||
spaceAggregation: 'sum',
|
spaceAggregation: 'sum',
|
||||||
@@ -154,8 +146,6 @@ export const getHostTracesQueryPayload = (
|
|||||||
key: 'serviceName',
|
key: 'serviceName',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'serviceName--string--tag--true',
|
id: 'serviceName--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -163,8 +153,6 @@ export const getHostTracesQueryPayload = (
|
|||||||
key: 'name',
|
key: 'name',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'name--string--tag--true',
|
id: 'name--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -172,8 +160,6 @@ export const getHostTracesQueryPayload = (
|
|||||||
key: 'durationNano',
|
key: 'durationNano',
|
||||||
dataType: 'float64',
|
dataType: 'float64',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'durationNano--float64--tag--true',
|
id: 'durationNano--float64--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -181,8 +167,6 @@ export const getHostTracesQueryPayload = (
|
|||||||
key: 'httpMethod',
|
key: 'httpMethod',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'httpMethod--string--tag--true',
|
id: 'httpMethod--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -190,8 +174,6 @@ export const getHostTracesQueryPayload = (
|
|||||||
key: 'responseStatusCode',
|
key: 'responseStatusCode',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'responseStatusCode--string--tag--true',
|
id: 'responseStatusCode--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -119,8 +119,6 @@ function HostMetricsDetails({
|
|||||||
key: 'host.name',
|
key: 'host.name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'host.name--string--resource--false',
|
id: 'host.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -26,9 +26,7 @@ export const getHostLogsQueryPayload = (
|
|||||||
id: '------false',
|
id: '------false',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
timeAggregation: 'rate',
|
timeAggregation: 'rate',
|
||||||
spaceAggregation: 'sum',
|
spaceAggregation: 'sum',
|
||||||
|
|||||||
50
frontend/src/components/HttpStatusBadge/HttpStatusBadge.tsx
Normal file
50
frontend/src/components/HttpStatusBadge/HttpStatusBadge.tsx
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
import { Badge } from '@signozhq/badge';
|
||||||
|
|
||||||
|
type BadgeColor =
|
||||||
|
| 'vanilla'
|
||||||
|
| 'robin'
|
||||||
|
| 'forest'
|
||||||
|
| 'amber'
|
||||||
|
| 'sienna'
|
||||||
|
| 'cherry'
|
||||||
|
| 'sakura'
|
||||||
|
| 'aqua';
|
||||||
|
|
||||||
|
interface HttpStatusBadgeProps {
|
||||||
|
statusCode: string | number;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getStatusCodeColor(statusCode: number): BadgeColor {
|
||||||
|
if (statusCode >= 200 && statusCode < 300) {
|
||||||
|
return 'forest'; // Success - green
|
||||||
|
}
|
||||||
|
if (statusCode >= 300 && statusCode < 400) {
|
||||||
|
return 'robin'; // Redirect - blue
|
||||||
|
}
|
||||||
|
if (statusCode >= 400 && statusCode < 500) {
|
||||||
|
return 'amber'; // Client error - amber
|
||||||
|
}
|
||||||
|
if (statusCode >= 500) {
|
||||||
|
return 'cherry'; // Server error - red
|
||||||
|
}
|
||||||
|
if (statusCode >= 100 && statusCode < 200) {
|
||||||
|
return 'vanilla'; // Informational - neutral
|
||||||
|
}
|
||||||
|
return 'robin'; // Default fallback
|
||||||
|
}
|
||||||
|
|
||||||
|
function HttpStatusBadge({
|
||||||
|
statusCode,
|
||||||
|
}: HttpStatusBadgeProps): JSX.Element | null {
|
||||||
|
const numericStatusCode = Number(statusCode);
|
||||||
|
|
||||||
|
if (!numericStatusCode || numericStatusCode <= 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
const color = getStatusCodeColor(numericStatusCode);
|
||||||
|
|
||||||
|
return <Badge color={color}>{statusCode}</Badge>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default HttpStatusBadge;
|
||||||
@@ -17,7 +17,7 @@ function InputWithLabel({
|
|||||||
closeIcon,
|
closeIcon,
|
||||||
}: {
|
}: {
|
||||||
label: string;
|
label: string;
|
||||||
initialValue?: string | number;
|
initialValue?: string | number | null;
|
||||||
placeholder: string;
|
placeholder: string;
|
||||||
type?: string;
|
type?: string;
|
||||||
onClose?: () => void;
|
onClose?: () => void;
|
||||||
|
|||||||
@@ -0,0 +1,152 @@
|
|||||||
|
.kbar-command-palette__positioner {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 1rem;
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
backdrop-filter: blur(6px);
|
||||||
|
z-index: 50;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__animator {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__card {
|
||||||
|
background: var(--bg-ink-500);
|
||||||
|
color: var(--text-vanilla-100);
|
||||||
|
border-radius: 3px;
|
||||||
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
|
||||||
|
overflow: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__search {
|
||||||
|
padding: 12px 16px;
|
||||||
|
font-size: 13px;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid var(--border-ink-200);
|
||||||
|
color: var(--text-vanilla-100);
|
||||||
|
outline: none;
|
||||||
|
background-color: var(--bg-ink-500);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__section {
|
||||||
|
padding: 8px 16px 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text-robin-500);
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 10px 16px;
|
||||||
|
font-size: 13px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__item:hover,
|
||||||
|
.kbar-command-palette__item--active {
|
||||||
|
background: var(--bg-ink-400);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__icon {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__shortcut {
|
||||||
|
margin-left: auto;
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__key {
|
||||||
|
padding: 2px 6px;
|
||||||
|
font-size: 12px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background: var(--bg-ink-300);
|
||||||
|
color: var(--text-vanilla-300);
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-family: 'Space Mono', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__results-container {
|
||||||
|
div {
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 0.3rem;
|
||||||
|
height: 0.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--bg-slate-300);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--bg-slate-200);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lightMode {
|
||||||
|
.kbar-command-palette__positioner {
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__card {
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__search {
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
color: var(--text-ink-500);
|
||||||
|
background-color: var(--bg-vanilla-100);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__item {
|
||||||
|
color: var(--text-ink-500);
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__item:hover,
|
||||||
|
.kbar-command-palette__item--active {
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__icon {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__key {
|
||||||
|
background: #eee;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kbar-command-palette__results-container {
|
||||||
|
div {
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--bg-vanilla-300);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--bg-vanilla-300);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
import './KBarCommandPalette.scss';
|
||||||
|
|
||||||
|
import {
|
||||||
|
KBarAnimator,
|
||||||
|
KBarPortal,
|
||||||
|
KBarPositioner,
|
||||||
|
KBarResults,
|
||||||
|
KBarSearch,
|
||||||
|
useMatches,
|
||||||
|
} from 'kbar';
|
||||||
|
|
||||||
|
function Results(): JSX.Element {
|
||||||
|
const { results } = useMatches();
|
||||||
|
|
||||||
|
const renderResults = ({
|
||||||
|
item,
|
||||||
|
active,
|
||||||
|
}: {
|
||||||
|
item: any;
|
||||||
|
active: boolean;
|
||||||
|
}): JSX.Element =>
|
||||||
|
typeof item === 'string' ? (
|
||||||
|
<div className="kbar-command-palette__section">{item}</div>
|
||||||
|
) : (
|
||||||
|
<div
|
||||||
|
className={`kbar-command-palette__item ${
|
||||||
|
active ? 'kbar-command-palette__item--active' : ''
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{item.icon}
|
||||||
|
<span>{item.name}</span>
|
||||||
|
{item.shortcut?.length ? (
|
||||||
|
<span className="kbar-command-palette__shortcut">
|
||||||
|
{item.shortcut.map((sc: string) => (
|
||||||
|
<kbd key={sc} className="kbar-command-palette__key">
|
||||||
|
{sc}
|
||||||
|
</kbd>
|
||||||
|
))}
|
||||||
|
</span>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="kbar-command-palette__results-container">
|
||||||
|
<KBarResults items={results} onRender={renderResults} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function KBarCommandPalette(): JSX.Element {
|
||||||
|
return (
|
||||||
|
<KBarPortal>
|
||||||
|
<KBarPositioner className="kbar-command-palette__positioner">
|
||||||
|
<KBarAnimator className="kbar-command-palette__animator">
|
||||||
|
<div className="kbar-command-palette__card">
|
||||||
|
<KBarSearch
|
||||||
|
className="kbar-command-palette__search"
|
||||||
|
placeholder="Search or type a command..."
|
||||||
|
/>
|
||||||
|
<Results />
|
||||||
|
</div>
|
||||||
|
</KBarAnimator>
|
||||||
|
</KBarPositioner>
|
||||||
|
</KBarPortal>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default KBarCommandPalette;
|
||||||
@@ -10,11 +10,7 @@ import { VIEWS } from './constants';
|
|||||||
export type LogDetailProps = {
|
export type LogDetailProps = {
|
||||||
log: ILog | null;
|
log: ILog | null;
|
||||||
selectedTab: VIEWS;
|
selectedTab: VIEWS;
|
||||||
onGroupByAttribute?: (
|
onGroupByAttribute?: (fieldKey: string, dataType?: DataTypes) => Promise<void>;
|
||||||
fieldKey: string,
|
|
||||||
isJSON?: boolean,
|
|
||||||
dataType?: DataTypes,
|
|
||||||
) => Promise<void>;
|
|
||||||
isListViewPanel?: boolean;
|
isListViewPanel?: boolean;
|
||||||
listViewPanelSelectedFields?: IField[] | null;
|
listViewPanelSelectedFields?: IField[] | null;
|
||||||
} & Pick<AddToQueryHOCProps, 'onAddToQuery'> &
|
} & Pick<AddToQueryHOCProps, 'onAddToQuery'> &
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function AddToQueryHOC({
|
|||||||
}: AddToQueryHOCProps): JSX.Element {
|
}: AddToQueryHOCProps): JSX.Element {
|
||||||
const handleQueryAdd = (event: MouseEvent<HTMLDivElement>): void => {
|
const handleQueryAdd = (event: MouseEvent<HTMLDivElement>): void => {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
onAddToQuery(fieldKey, fieldValue, OPERATORS['='], undefined, dataType);
|
onAddToQuery(fieldKey, fieldValue, OPERATORS['='], dataType);
|
||||||
};
|
};
|
||||||
|
|
||||||
const popOverContent = useMemo(() => <span>Add to query: {fieldKey}</span>, [
|
const popOverContent = useMemo(() => <span>Add to query: {fieldKey}</span>, [
|
||||||
@@ -41,7 +41,6 @@ export interface AddToQueryHOCProps {
|
|||||||
fieldKey: string,
|
fieldKey: string,
|
||||||
fieldValue: string,
|
fieldValue: string,
|
||||||
operator: string,
|
operator: string,
|
||||||
isJSON?: boolean,
|
|
||||||
dataType?: DataTypes,
|
dataType?: DataTypes,
|
||||||
) => void;
|
) => void;
|
||||||
fontSize: FontSize;
|
fontSize: FontSize;
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ const MetricsAggregateSection = memo(function MetricsAggregateSection({
|
|||||||
label="Seconds"
|
label="Seconds"
|
||||||
placeholder="Auto"
|
placeholder="Auto"
|
||||||
labelAfter
|
labelAfter
|
||||||
initialValue={query?.stepInterval ?? undefined}
|
initialValue={query?.stepInterval ?? null}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -283,7 +283,7 @@ const MetricsAggregateSection = memo(function MetricsAggregateSection({
|
|||||||
label="Seconds"
|
label="Seconds"
|
||||||
placeholder="Auto"
|
placeholder="Auto"
|
||||||
labelAfter
|
labelAfter
|
||||||
initialValue={query?.stepInterval ?? undefined}
|
initialValue={query?.stepInterval ?? null}
|
||||||
className="histogram-every-input"
|
className="histogram-every-input"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -81,9 +81,7 @@ function QueryAggregationOptions({
|
|||||||
|
|
||||||
<div className="query-aggregation-interval-input-container">
|
<div className="query-aggregation-interval-input-container">
|
||||||
<InputWithLabel
|
<InputWithLabel
|
||||||
initialValue={
|
initialValue={queryData?.stepInterval ? queryData?.stepInterval : null}
|
||||||
queryData?.stepInterval ? queryData?.stepInterval : undefined
|
|
||||||
}
|
|
||||||
className="query-aggregation-interval-input"
|
className="query-aggregation-interval-input"
|
||||||
label="Seconds"
|
label="Seconds"
|
||||||
placeholder="Auto"
|
placeholder="Auto"
|
||||||
|
|||||||
@@ -154,15 +154,23 @@ function QueryAggregationSelect({
|
|||||||
const isDarkMode = useIsDarkMode();
|
const isDarkMode = useIsDarkMode();
|
||||||
const { setAggregationOptions } = useQueryBuilderV2Context();
|
const { setAggregationOptions } = useQueryBuilderV2Context();
|
||||||
|
|
||||||
|
const formatAggregations = useCallback(
|
||||||
|
(aggregations: any[] | undefined): string =>
|
||||||
|
aggregations
|
||||||
|
?.map(({ expression, alias }: any) =>
|
||||||
|
alias ? `${expression} as ${alias}` : expression,
|
||||||
|
)
|
||||||
|
.join(' ') || '',
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
|
||||||
const [input, setInput] = useState(
|
const [input, setInput] = useState(
|
||||||
queryData?.aggregations?.map((i: any) => i.expression).join(' ') || '',
|
formatAggregations(queryData?.aggregations),
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setInput(
|
setInput(formatAggregations(queryData?.aggregations));
|
||||||
queryData?.aggregations?.map((i: any) => i.expression).join(' ') || '',
|
}, [queryData?.aggregations, formatAggregations]);
|
||||||
);
|
|
||||||
}, [queryData?.aggregations]);
|
|
||||||
|
|
||||||
const [cursorPos, setCursorPos] = useState(0);
|
const [cursorPos, setCursorPos] = useState(0);
|
||||||
const [functionArgPairs, setFunctionArgPairs] = useState<
|
const [functionArgPairs, setFunctionArgPairs] = useState<
|
||||||
|
|||||||
@@ -1292,7 +1292,7 @@ function QuerySearch({
|
|||||||
if (onRun && typeof onRun === 'function') {
|
if (onRun && typeof onRun === 'function') {
|
||||||
onRun(query);
|
onRun(query);
|
||||||
} else {
|
} else {
|
||||||
handleRunQuery(true, true);
|
handleRunQuery();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,9 +1,19 @@
|
|||||||
/* eslint-disable sonarjs/no-duplicate-string */
|
/* eslint-disable sonarjs/no-duplicate-string */
|
||||||
|
/* eslint-disable import/no-unresolved */
|
||||||
|
import { negateOperator, OPERATORS } from 'constants/antlrQueryConstants';
|
||||||
import { TagFilter } from 'types/api/queryBuilder/queryBuilderData';
|
import { TagFilter } from 'types/api/queryBuilder/queryBuilderData';
|
||||||
|
import { extractQueryPairs } from 'utils/queryContextUtils';
|
||||||
|
|
||||||
import { convertFiltersToExpression } from '../utils';
|
import {
|
||||||
|
convertFiltersToExpression,
|
||||||
|
convertFiltersToExpressionWithExistingQuery,
|
||||||
|
} from '../utils';
|
||||||
|
|
||||||
describe('convertFiltersToExpression', () => {
|
describe('convertFiltersToExpression', () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
jest.clearAllMocks();
|
||||||
|
});
|
||||||
|
|
||||||
it('should handle empty, null, and undefined inputs', () => {
|
it('should handle empty, null, and undefined inputs', () => {
|
||||||
// Test null and undefined
|
// Test null and undefined
|
||||||
expect(convertFiltersToExpression(null as any)).toEqual({ expression: '' });
|
expect(convertFiltersToExpression(null as any)).toEqual({ expression: '' });
|
||||||
@@ -533,4 +543,229 @@ describe('convertFiltersToExpression', () => {
|
|||||||
"user_id NOT EXISTS AND description NOT CONTAINS 'error' AND NOT has(tags, 'production') AND NOT hasAny(labels, ['env:prod', 'service:api'])",
|
"user_id NOT EXISTS AND description NOT CONTAINS 'error' AND NOT has(tags, 'production') AND NOT hasAny(labels, ['env:prod', 'service:api'])",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should return filters with new expression when no existing query', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: { id: 'service.name', key: 'service.name', type: 'string' },
|
||||||
|
op: OPERATORS['='],
|
||||||
|
value: 'test-service',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
undefined,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters).toEqual(filters);
|
||||||
|
expect(result.filter.expression).toBe("service.name = 'test-service'");
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle empty filters', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
undefined,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters).toEqual(filters);
|
||||||
|
expect(result.filter.expression).toBe('');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle existing query with matching filters', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: { id: 'service.name', key: 'service.name', type: 'string' },
|
||||||
|
op: OPERATORS['='],
|
||||||
|
value: 'updated-service',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const existingQuery = "service.name = 'old-service'";
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
existingQuery,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters).toBeDefined();
|
||||||
|
expect(result.filter).toBeDefined();
|
||||||
|
expect(result.filter.expression).toBe("service.name = 'updated-service'");
|
||||||
|
// Ensure parser can parse the existing query
|
||||||
|
expect(extractQueryPairs(existingQuery)).toEqual(
|
||||||
|
expect.arrayContaining([
|
||||||
|
expect.objectContaining({
|
||||||
|
key: 'service.name',
|
||||||
|
operator: '=',
|
||||||
|
value: "'old-service'",
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle IN operator with existing query', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: { id: 'service.name', key: 'service.name', type: 'string' },
|
||||||
|
op: OPERATORS.IN,
|
||||||
|
value: ['service1', 'service2'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const existingQuery = "service.name IN ['old-service']";
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
existingQuery,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters).toBeDefined();
|
||||||
|
expect(result.filter).toBeDefined();
|
||||||
|
expect(result.filter.expression).toBe(
|
||||||
|
"service.name IN ['service1', 'service2']",
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle IN operator conversion from equals', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: { id: 'service.name', key: 'service.name', type: 'string' },
|
||||||
|
op: OPERATORS.IN,
|
||||||
|
value: ['service1', 'service2'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const existingQuery = "service.name = 'old-service'";
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
existingQuery,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters.items).toHaveLength(1);
|
||||||
|
expect(result.filter.expression).toBe(
|
||||||
|
"service.name IN ['service1', 'service2'] ",
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle NOT IN operator conversion from not equals', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: { id: 'service.name', key: 'service.name', type: 'string' },
|
||||||
|
op: negateOperator(OPERATORS.IN),
|
||||||
|
value: ['service1', 'service2'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const existingQuery = "service.name != 'old-service'";
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
existingQuery,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters.items).toHaveLength(1);
|
||||||
|
expect(result.filter.expression).toBe(
|
||||||
|
"service.name NOT IN ['service1', 'service2'] ",
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should add new filters when they do not exist in existing query', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: { id: 'new.key', key: 'new.key', type: 'string' },
|
||||||
|
op: OPERATORS['='],
|
||||||
|
value: 'new-value',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const existingQuery = "service.name = 'old-service'";
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
existingQuery,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters.items).toHaveLength(2); // Original + new filter
|
||||||
|
expect(result.filter.expression).toBe(
|
||||||
|
"service.name = 'old-service' new.key = 'new-value'",
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle simple value replacement', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: { id: 'status', key: 'status', type: 'string' },
|
||||||
|
op: OPERATORS['='],
|
||||||
|
value: 'error',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const existingQuery = "status = 'success'";
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
existingQuery,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters.items).toHaveLength(1);
|
||||||
|
expect(result.filter.expression).toBe("status = 'error'");
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle filters with no key gracefully', () => {
|
||||||
|
const filters = {
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
key: undefined,
|
||||||
|
op: OPERATORS['='],
|
||||||
|
value: 'test-value',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
op: 'AND',
|
||||||
|
};
|
||||||
|
|
||||||
|
const existingQuery = "service.name = 'old-service'";
|
||||||
|
|
||||||
|
const result = convertFiltersToExpressionWithExistingQuery(
|
||||||
|
filters,
|
||||||
|
existingQuery,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(result.filters.items).toHaveLength(2);
|
||||||
|
expect(result.filter.expression).toBe("service.name = 'old-service'");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
QUERY_BUILDER_FUNCTIONS,
|
QUERY_BUILDER_FUNCTIONS,
|
||||||
} from 'constants/antlrQueryConstants';
|
} from 'constants/antlrQueryConstants';
|
||||||
import { getOperatorValue } from 'container/QueryBuilder/filters/QueryBuilderSearch/utils';
|
import { getOperatorValue } from 'container/QueryBuilder/filters/QueryBuilderSearch/utils';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep, isEqual, sortBy } from 'lodash-es';
|
||||||
import { IQueryPair } from 'types/antlrQueryTypes';
|
import { IQueryPair } from 'types/antlrQueryTypes';
|
||||||
import { BaseAutocompleteData } from 'types/api/queryBuilder/queryAutocompleteResponse';
|
import { BaseAutocompleteData } from 'types/api/queryBuilder/queryAutocompleteResponse';
|
||||||
import {
|
import {
|
||||||
@@ -163,6 +163,19 @@ export const convertExpressionToFilters = (
|
|||||||
|
|
||||||
return filters;
|
return filters;
|
||||||
};
|
};
|
||||||
|
const getQueryPairsMap = (query: string): Map<string, IQueryPair> => {
|
||||||
|
const queryPairs = extractQueryPairs(query);
|
||||||
|
const queryPairsMap: Map<string, IQueryPair> = new Map();
|
||||||
|
|
||||||
|
queryPairs.forEach((pair) => {
|
||||||
|
const key = pair.hasNegation
|
||||||
|
? `${pair.key}-not ${pair.operator}`.trim().toLowerCase()
|
||||||
|
: `${pair.key}-${pair.operator}`.trim().toLowerCase();
|
||||||
|
queryPairsMap.set(key, pair);
|
||||||
|
});
|
||||||
|
|
||||||
|
return queryPairsMap;
|
||||||
|
};
|
||||||
|
|
||||||
export const convertFiltersToExpressionWithExistingQuery = (
|
export const convertFiltersToExpressionWithExistingQuery = (
|
||||||
filters: TagFilter,
|
filters: TagFilter,
|
||||||
@@ -195,24 +208,12 @@ export const convertFiltersToExpressionWithExistingQuery = (
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract query pairs from the existing query
|
|
||||||
const queryPairs = extractQueryPairs(existingQuery.trim());
|
|
||||||
let queryPairsMap: Map<string, IQueryPair> = new Map();
|
|
||||||
const nonExistingFilters: TagFilterItem[] = [];
|
const nonExistingFilters: TagFilterItem[] = [];
|
||||||
let modifiedQuery = existingQuery; // We'll modify this query as we proceed
|
let modifiedQuery = existingQuery; // We'll modify this query as we proceed
|
||||||
const visitedPairs: Set<string> = new Set(); // Set to track visited query pairs
|
const visitedPairs: Set<string> = new Set(); // Set to track visited query pairs
|
||||||
|
|
||||||
// Map extracted query pairs to key-specific pair information for faster access
|
// Map extracted query pairs to key-specific pair information for faster access
|
||||||
if (queryPairs.length > 0) {
|
let queryPairsMap = getQueryPairsMap(existingQuery.trim());
|
||||||
queryPairsMap = new Map(
|
|
||||||
queryPairs.map((pair) => {
|
|
||||||
const key = pair.hasNegation
|
|
||||||
? `${pair.key}-not ${pair.operator}`.trim().toLowerCase()
|
|
||||||
: `${pair.key}-${pair.operator}`.trim().toLowerCase();
|
|
||||||
return [key, pair];
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
filters?.items?.forEach((filter) => {
|
filters?.items?.forEach((filter) => {
|
||||||
const { key, op, value } = filter;
|
const { key, op, value } = filter;
|
||||||
@@ -241,10 +242,37 @@ export const convertFiltersToExpressionWithExistingQuery = (
|
|||||||
existingPair.position?.valueEnd
|
existingPair.position?.valueEnd
|
||||||
) {
|
) {
|
||||||
visitedPairs.add(`${key.key}-${op}`.trim().toLowerCase());
|
visitedPairs.add(`${key.key}-${op}`.trim().toLowerCase());
|
||||||
|
|
||||||
|
// Check if existing values match current filter values (for array-based operators)
|
||||||
|
if (existingPair.valueList && filter.value && Array.isArray(filter.value)) {
|
||||||
|
// Clean quotes from string values for comparison
|
||||||
|
const cleanValues = (values: any[]): any[] =>
|
||||||
|
values.map((val) => (typeof val === 'string' ? unquote(val) : val));
|
||||||
|
|
||||||
|
const cleanExistingValues = cleanValues(existingPair.valueList);
|
||||||
|
const cleanFilterValues = cleanValues(filter.value);
|
||||||
|
|
||||||
|
// Compare arrays (order-independent) - if identical, keep existing value
|
||||||
|
const isSameValues =
|
||||||
|
cleanExistingValues.length === cleanFilterValues.length &&
|
||||||
|
isEqual(sortBy(cleanExistingValues), sortBy(cleanFilterValues));
|
||||||
|
|
||||||
|
if (isSameValues) {
|
||||||
|
// Values are identical, preserve existing formatting
|
||||||
|
modifiedQuery =
|
||||||
|
modifiedQuery.slice(0, existingPair.position.valueStart) +
|
||||||
|
existingPair.value +
|
||||||
|
modifiedQuery.slice(existingPair.position.valueEnd + 1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
modifiedQuery =
|
modifiedQuery =
|
||||||
modifiedQuery.slice(0, existingPair.position.valueStart) +
|
modifiedQuery.slice(0, existingPair.position.valueStart) +
|
||||||
formattedValue +
|
formattedValue +
|
||||||
modifiedQuery.slice(existingPair.position.valueEnd + 1);
|
modifiedQuery.slice(existingPair.position.valueEnd + 1);
|
||||||
|
|
||||||
|
queryPairsMap = getQueryPairsMap(modifiedQuery);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -270,6 +298,7 @@ export const convertFiltersToExpressionWithExistingQuery = (
|
|||||||
)}${OPERATORS.IN} ${formattedValue} ${modifiedQuery.slice(
|
)}${OPERATORS.IN} ${formattedValue} ${modifiedQuery.slice(
|
||||||
notInPair.position.valueEnd + 1,
|
notInPair.position.valueEnd + 1,
|
||||||
)}`;
|
)}`;
|
||||||
|
queryPairsMap = getQueryPairsMap(modifiedQuery.trim());
|
||||||
}
|
}
|
||||||
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
||||||
} else if (
|
} else if (
|
||||||
@@ -286,6 +315,7 @@ export const convertFiltersToExpressionWithExistingQuery = (
|
|||||||
)}${OPERATORS.IN} ${formattedValue} ${modifiedQuery.slice(
|
)}${OPERATORS.IN} ${formattedValue} ${modifiedQuery.slice(
|
||||||
equalsPair.position.valueEnd + 1,
|
equalsPair.position.valueEnd + 1,
|
||||||
)}`;
|
)}`;
|
||||||
|
queryPairsMap = getQueryPairsMap(modifiedQuery);
|
||||||
}
|
}
|
||||||
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
||||||
} else if (
|
} else if (
|
||||||
@@ -302,6 +332,7 @@ export const convertFiltersToExpressionWithExistingQuery = (
|
|||||||
)}${OPERATORS.IN} ${formattedValue} ${modifiedQuery.slice(
|
)}${OPERATORS.IN} ${formattedValue} ${modifiedQuery.slice(
|
||||||
notEqualsPair.position.valueEnd + 1,
|
notEqualsPair.position.valueEnd + 1,
|
||||||
)}`;
|
)}`;
|
||||||
|
queryPairsMap = getQueryPairsMap(modifiedQuery);
|
||||||
}
|
}
|
||||||
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
||||||
}
|
}
|
||||||
@@ -323,6 +354,7 @@ export const convertFiltersToExpressionWithExistingQuery = (
|
|||||||
} ${formattedValue} ${modifiedQuery.slice(
|
} ${formattedValue} ${modifiedQuery.slice(
|
||||||
notEqualsPair.position.valueEnd + 1,
|
notEqualsPair.position.valueEnd + 1,
|
||||||
)}`;
|
)}`;
|
||||||
|
queryPairsMap = getQueryPairsMap(modifiedQuery);
|
||||||
}
|
}
|
||||||
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
shouldAddToNonExisting = false; // Don't add this to non-existing filters
|
||||||
}
|
}
|
||||||
@@ -335,6 +367,23 @@ export const convertFiltersToExpressionWithExistingQuery = (
|
|||||||
if (
|
if (
|
||||||
queryPairsMap.has(`${filter.key?.key}-${filter.op}`.trim().toLowerCase())
|
queryPairsMap.has(`${filter.key?.key}-${filter.op}`.trim().toLowerCase())
|
||||||
) {
|
) {
|
||||||
|
const existingPair = queryPairsMap.get(
|
||||||
|
`${filter.key?.key}-${filter.op}`.trim().toLowerCase(),
|
||||||
|
);
|
||||||
|
if (
|
||||||
|
existingPair &&
|
||||||
|
existingPair.position?.valueStart &&
|
||||||
|
existingPair.position?.valueEnd
|
||||||
|
) {
|
||||||
|
const formattedValue = formatValueForExpression(value, op);
|
||||||
|
// replace the value with the new value
|
||||||
|
modifiedQuery =
|
||||||
|
modifiedQuery.slice(0, existingPair.position.valueStart) +
|
||||||
|
formattedValue +
|
||||||
|
modifiedQuery.slice(existingPair.position.valueEnd + 1);
|
||||||
|
queryPairsMap = getQueryPairsMap(modifiedQuery);
|
||||||
|
}
|
||||||
|
|
||||||
visitedPairs.add(`${filter.key?.key}-${filter.op}`.trim().toLowerCase());
|
visitedPairs.add(`${filter.key?.key}-${filter.op}`.trim().toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,8 +133,6 @@ function OtherFilters({
|
|||||||
{
|
{
|
||||||
key: filter.key,
|
key: filter.key,
|
||||||
dataType: filter.dataType,
|
dataType: filter.dataType,
|
||||||
isColumn: filter.isColumn,
|
|
||||||
isJSON: filter.isJSON,
|
|
||||||
type: filter.type,
|
type: filter.type,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ export const QuickFiltersConfig = [
|
|||||||
key: 'deployment.environment',
|
key: 'deployment.environment',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -22,8 +20,6 @@ export const QuickFiltersConfig = [
|
|||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: false,
|
defaultOpen: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -53,8 +53,6 @@ export const getFilterConfig = (
|
|||||||
key: att.key,
|
key: att.key,
|
||||||
dataType: att.dataType,
|
dataType: att.dataType,
|
||||||
type: att.type,
|
type: att.type,
|
||||||
isColumn: att.isColumn,
|
|
||||||
isJSON: att.isJSON,
|
|
||||||
},
|
},
|
||||||
defaultOpen: index < 2,
|
defaultOpen: index < 2,
|
||||||
} as IQuickFiltersConfig),
|
} as IQuickFiltersConfig),
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ export const DATE_TIME_FORMATS = {
|
|||||||
MONTH_DATETIME_SECONDS: 'MMM DD YYYY HH:mm:ss',
|
MONTH_DATETIME_SECONDS: 'MMM DD YYYY HH:mm:ss',
|
||||||
MONTH_DATETIME_FULL: 'MMMM DD, YYYY HH:mm',
|
MONTH_DATETIME_FULL: 'MMMM DD, YYYY HH:mm',
|
||||||
MONTH_DATETIME_FULL_SECONDS: 'MMM DD, YYYY, HH:mm:ss',
|
MONTH_DATETIME_FULL_SECONDS: 'MMM DD, YYYY, HH:mm:ss',
|
||||||
|
DD_MMM_YYYY_HH_MM: 'DD MMM YYYY, HH:mm',
|
||||||
|
DD_MMM_YYYY_HH_MM_SS: 'DD MMM YYYY, HH:mm:ss',
|
||||||
|
|
||||||
// Ordinal formats (1st, 2nd, 3rd, etc)
|
// Ordinal formats (1st, 2nd, 3rd, etc)
|
||||||
ORDINAL_DATE: 'Do MMM YYYY',
|
ORDINAL_DATE: 'Do MMM YYYY',
|
||||||
|
|||||||
@@ -32,4 +32,5 @@ export enum LOCALSTORAGE {
|
|||||||
BANNER_DISMISSED = 'BANNER_DISMISSED',
|
BANNER_DISMISSED = 'BANNER_DISMISSED',
|
||||||
QUICK_FILTERS_SETTINGS_ANNOUNCEMENT = 'QUICK_FILTERS_SETTINGS_ANNOUNCEMENT',
|
QUICK_FILTERS_SETTINGS_ANNOUNCEMENT = 'QUICK_FILTERS_SETTINGS_ANNOUNCEMENT',
|
||||||
FUNNEL_STEPS = 'FUNNEL_STEPS',
|
FUNNEL_STEPS = 'FUNNEL_STEPS',
|
||||||
|
LAST_USED_CUSTOM_TIME_RANGES = 'LAST_USED_CUSTOM_TIME_RANGES',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,8 +55,8 @@ export const selectValueDivider = '__';
|
|||||||
|
|
||||||
export const baseAutoCompleteIdKeysOrder: (keyof Omit<
|
export const baseAutoCompleteIdKeysOrder: (keyof Omit<
|
||||||
BaseAutocompleteData,
|
BaseAutocompleteData,
|
||||||
'id' | 'isJSON' | 'isIndexed'
|
'id' | 'isIndexed'
|
||||||
>)[] = ['key', 'dataType', 'type', 'isColumn'];
|
>)[] = ['key', 'dataType', 'type'];
|
||||||
|
|
||||||
export const autocompleteType: Record<AutocompleteType, AutocompleteType> = {
|
export const autocompleteType: Record<AutocompleteType, AutocompleteType> = {
|
||||||
resource: 'resource',
|
resource: 'resource',
|
||||||
@@ -150,14 +150,12 @@ export const initialHavingValues: HavingForm = {
|
|||||||
|
|
||||||
export const initialAutocompleteData: BaseAutocompleteData = {
|
export const initialAutocompleteData: BaseAutocompleteData = {
|
||||||
id: createIdFromObjectFields(
|
id: createIdFromObjectFields(
|
||||||
{ dataType: null, key: '', isColumn: null, type: null },
|
{ dataType: null, key: '', type: null },
|
||||||
baseAutoCompleteIdKeysOrder,
|
baseAutoCompleteIdKeysOrder,
|
||||||
),
|
),
|
||||||
dataType: DataTypes.EMPTY,
|
dataType: DataTypes.EMPTY,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
isJSON: false,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const initialFilters: TagFilter = {
|
export const initialFilters: TagFilter = {
|
||||||
@@ -189,7 +187,7 @@ export const initialQueryBuilderFormValues: IBuilderQuery = {
|
|||||||
sourceNames: alphabet,
|
sourceNames: alphabet,
|
||||||
}),
|
}),
|
||||||
disabled: false,
|
disabled: false,
|
||||||
stepInterval: undefined,
|
stepInterval: null,
|
||||||
having: [],
|
having: [],
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
@@ -237,7 +235,7 @@ export const initialQueryBuilderFormMeterValues: IBuilderQuery = {
|
|||||||
sourceNames: alphabet,
|
sourceNames: alphabet,
|
||||||
}),
|
}),
|
||||||
disabled: false,
|
disabled: false,
|
||||||
stepInterval: undefined,
|
stepInterval: null,
|
||||||
having: [],
|
having: [],
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ export const GlobalShortcuts = {
|
|||||||
NavigateToExceptions: 'e+shift',
|
NavigateToExceptions: 'e+shift',
|
||||||
NavigateToMessagingQueues: 'm+shift',
|
NavigateToMessagingQueues: 'm+shift',
|
||||||
ToggleSidebar: 'b+shift',
|
ToggleSidebar: 'b+shift',
|
||||||
|
NavigateToHome: 'h+shift',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const GlobalShortcutsName = {
|
export const GlobalShortcutsName = {
|
||||||
@@ -18,15 +19,17 @@ export const GlobalShortcutsName = {
|
|||||||
NavigateToExceptions: 'shift+e',
|
NavigateToExceptions: 'shift+e',
|
||||||
NavigateToMessagingQueues: 'shift+m',
|
NavigateToMessagingQueues: 'shift+m',
|
||||||
ToggleSidebar: 'shift+b',
|
ToggleSidebar: 'shift+b',
|
||||||
|
NavigateToHome: 'shift+h',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const GlobalShortcutsDescription = {
|
export const GlobalShortcutsDescription = {
|
||||||
|
NavigateToHome: 'Navigate to Home',
|
||||||
NavigateToServices: 'Navigate to Services page',
|
NavigateToServices: 'Navigate to Services page',
|
||||||
NavigateToTraces: 'Navigate to Traces page',
|
NavigateToTraces: 'Navigate to Traces Explorer',
|
||||||
NavigateToLogs: 'Navigate to logs page',
|
NavigateToLogs: 'Navigate to Logs Explorer',
|
||||||
NavigateToDashboards: 'Navigate to dashboards page',
|
NavigateToDashboards: 'Navigate to Dashboards List',
|
||||||
NavigateToAlerts: 'Navigate to alerts page',
|
NavigateToAlerts: 'Navigate to Alerts List',
|
||||||
NavigateToExceptions: 'Navigate to Exceptions page',
|
NavigateToExceptions: 'Navigate to Exceptions List',
|
||||||
NavigateToMessagingQueues: 'Navigate to Messaging Queues page',
|
NavigateToMessagingQueues: 'Navigate to Messaging Queues',
|
||||||
ToggleSidebar: 'Toggle sidebar visibility',
|
ToggleSidebar: 'Toggle sidebar visibility',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ export const LogsExplorerShortcuts = {
|
|||||||
export const LogsExplorerShortcutsName = {
|
export const LogsExplorerShortcutsName = {
|
||||||
StageAndRunQuery: `${
|
StageAndRunQuery: `${
|
||||||
userOS === UserOperatingSystem.MACOS ? 'cmd' : 'ctrl'
|
userOS === UserOperatingSystem.MACOS ? 'cmd' : 'ctrl'
|
||||||
}+enter`,
|
} + enter`,
|
||||||
FocusTheSearchBar: 's',
|
FocusTheSearchBar: 's',
|
||||||
ShowAllFilters: `${userOS === UserOperatingSystem.MACOS ? 'cmd' : 'ctrl'}+/`,
|
ShowAllFilters: `${userOS === UserOperatingSystem.MACOS ? 'cmd' : 'ctrl'} + /`,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const LogsExplorerShortcutsDescription = {
|
export const LogsExplorerShortcutsDescription = {
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
const groupBy = [
|
const groupBy = [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
// eslint-disable-next-line sonarjs/no-duplicate-string
|
// eslint-disable-next-line sonarjs/no-duplicate-string
|
||||||
key: 'http.method',
|
key: 'http.method',
|
||||||
type: '',
|
type: '',
|
||||||
@@ -72,8 +70,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
id: 'test-filter',
|
id: 'test-filter',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'test-key',
|
key: 'test-key',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -144,8 +140,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'custom.field',
|
key: 'custom.field',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -180,24 +174,18 @@ describe('API Monitoring Utils', () => {
|
|||||||
id: 'group-by-1',
|
id: 'group-by-1',
|
||||||
key: 'http.method',
|
key: 'http.method',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'group-by-2',
|
id: 'group-by-2',
|
||||||
key: 'http.status_code',
|
key: 'http.status_code',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'group-by-3',
|
id: 'group-by-3',
|
||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -258,8 +246,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
id: 'group-by-1',
|
id: 'group-by-1',
|
||||||
key: 'http.method',
|
key: 'http.method',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -281,7 +267,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
expect(knownField).toBeDefined();
|
expect(knownField).toBeDefined();
|
||||||
if (knownField && knownField.key) {
|
if (knownField && knownField.key) {
|
||||||
expect(knownField.key.dataType).toBe(DataTypes.String);
|
expect(knownField.key.dataType).toBe(DataTypes.String);
|
||||||
expect(knownField.key.isColumn).toBe(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Should include the unknown field
|
// Should include the unknown field
|
||||||
@@ -430,8 +415,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
id: 'test-filter',
|
id: 'test-filter',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'test-key',
|
key: 'test-key',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -543,8 +526,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
id: 'test-filter',
|
id: 'test-filter',
|
||||||
key: {
|
key: {
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'test.key',
|
key: 'test.key',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1401,8 +1382,6 @@ describe('API Monitoring Utils', () => {
|
|||||||
id: 'custom-filter',
|
id: 'custom-filter',
|
||||||
key: {
|
key: {
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'custom.key',
|
key: 'custom.key',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,8 +32,6 @@ import { SPAN_ATTRIBUTES } from './constants';
|
|||||||
|
|
||||||
const httpUrlKey = {
|
const httpUrlKey = {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ function TopErrors({
|
|||||||
id: '92b8a1c1',
|
id: '92b8a1c1',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -99,8 +99,6 @@ function DomainList(): JSX.Element {
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
|
|||||||
@@ -123,8 +123,6 @@ describe('AllEndPoints', () => {
|
|||||||
{
|
{
|
||||||
key: 'http.status_code',
|
key: 'http.status_code',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -76,8 +76,6 @@ jest.mock(
|
|||||||
key: 'test.key',
|
key: 'test.key',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'test-value',
|
value: 'test-value',
|
||||||
@@ -335,8 +333,6 @@ describe('EndPointDetails Component', () => {
|
|||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'test-service',
|
value: 'test-service',
|
||||||
|
|||||||
@@ -172,8 +172,6 @@ describe('StatusCodeBarCharts', () => {
|
|||||||
key: {
|
key: {
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
id: 'response_status_code--string--tag--false',
|
id: 'response_status_code--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -185,8 +183,6 @@ describe('StatusCodeBarCharts', () => {
|
|||||||
key: {
|
key: {
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
id: 'response_status_code--string--tag--false',
|
id: 'response_status_code--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ export const ApiMonitoringQuickFiltersConfig: IQuickFiltersConfig[] = [
|
|||||||
key: 'deployment.environment',
|
key: 'deployment.environment',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
dataSource: DataSource.TRACES,
|
dataSource: DataSource.TRACES,
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
@@ -56,8 +54,6 @@ export const ApiMonitoringQuickFiltersConfig: IQuickFiltersConfig[] = [
|
|||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
dataSource: DataSource.TRACES,
|
dataSource: DataSource.TRACES,
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
@@ -69,8 +65,6 @@ export const ApiMonitoringQuickFiltersConfig: IQuickFiltersConfig[] = [
|
|||||||
key: 'rpc.method',
|
key: 'rpc.method',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
dataSource: DataSource.TRACES,
|
dataSource: DataSource.TRACES,
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
@@ -255,22 +249,16 @@ export const hardcodedAttributeKeys: BaseAutocompleteData[] = [
|
|||||||
key: 'deployment.environment',
|
key: 'deployment.environment',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'rpc.method',
|
key: 'rpc.method',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -352,8 +340,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
aggregateOperator: 'count',
|
aggregateOperator: 'count',
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -366,8 +352,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
id: '4c57937c',
|
id: '4c57937c',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -394,8 +378,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
aggregateOperator: 'p99',
|
aggregateOperator: 'p99',
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -408,8 +390,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
id: '2cf675cd',
|
id: '2cf675cd',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -437,7 +417,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -450,8 +429,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
id: '3db0f605',
|
id: '3db0f605',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -462,8 +439,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
id: '6096f745',
|
id: '6096f745',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.bool,
|
dataType: DataTypes.bool,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -491,7 +466,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'timestamp------false',
|
id: 'timestamp------false',
|
||||||
isColumn: false,
|
|
||||||
key: 'timestamp',
|
key: 'timestamp',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -504,8 +478,6 @@ export const getDomainMetricsQueryPayload = (
|
|||||||
id: '8ff8dea1',
|
id: '8ff8dea1',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -639,8 +611,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -654,8 +624,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
id: 'ec316e57',
|
id: 'ec316e57',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -668,8 +636,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -692,8 +658,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -707,8 +671,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
id: '46d57857',
|
id: '46d57857',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -721,8 +683,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -746,7 +706,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'timestamp------false',
|
id: 'timestamp------false',
|
||||||
isColumn: false,
|
|
||||||
key: 'timestamp',
|
key: 'timestamp',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -760,8 +719,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
id: '4a237616',
|
id: '4a237616',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -774,8 +731,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -798,8 +753,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -813,8 +766,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
id: 'f162de1e',
|
id: 'f162de1e',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -825,8 +776,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
id: '3df0ac1d',
|
id: '3df0ac1d',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.bool,
|
dataType: DataTypes.bool,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -839,8 +788,6 @@ export const getEndPointsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -919,9 +866,7 @@ export const getTopErrorsQueryPayload = (
|
|||||||
id: '------false',
|
id: '------false',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
timeAggregation: 'rate',
|
timeAggregation: 'rate',
|
||||||
spaceAggregation: 'sum',
|
spaceAggregation: 'sum',
|
||||||
@@ -935,8 +880,6 @@ export const getTopErrorsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -947,8 +890,6 @@ export const getTopErrorsQueryPayload = (
|
|||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: 'exists',
|
op: 'exists',
|
||||||
value: '',
|
value: '',
|
||||||
@@ -961,8 +902,6 @@ export const getTopErrorsQueryPayload = (
|
|||||||
key: 'status_message',
|
key: 'status_message',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: 'exists',
|
op: 'exists',
|
||||||
value: '',
|
value: '',
|
||||||
@@ -975,8 +914,6 @@ export const getTopErrorsQueryPayload = (
|
|||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: domainName,
|
value: domainName,
|
||||||
@@ -987,8 +924,6 @@ export const getTopErrorsQueryPayload = (
|
|||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
dataType: DataTypes.bool,
|
dataType: DataTypes.bool,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: true,
|
value: true,
|
||||||
@@ -1012,13 +947,9 @@ export const getTopErrorsQueryPayload = (
|
|||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: '',
|
type: '',
|
||||||
id: 'response_status_code--string----true',
|
id: 'response_status_code--string----true',
|
||||||
@@ -1027,8 +958,6 @@ export const getTopErrorsQueryPayload = (
|
|||||||
key: 'status_message',
|
key: 'status_message',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
legend: '',
|
legend: '',
|
||||||
@@ -1404,8 +1333,6 @@ export const getTopErrorsCoRelationQueryFilters = (
|
|||||||
key: 'http.url',
|
key: 'http.url',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'http.url--string--tag--false',
|
id: 'http.url--string--tag--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -1417,8 +1344,6 @@ export const getTopErrorsCoRelationQueryFilters = (
|
|||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
dataType: DataTypes.bool,
|
dataType: DataTypes.bool,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'true',
|
value: 'true',
|
||||||
@@ -1429,8 +1354,6 @@ export const getTopErrorsCoRelationQueryFilters = (
|
|||||||
key: 'net.peer.name',
|
key: 'net.peer.name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: domainName,
|
value: domainName,
|
||||||
@@ -1441,8 +1364,6 @@ export const getTopErrorsCoRelationQueryFilters = (
|
|||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'response_status_code--string----true',
|
id: 'response_status_code--string----true',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -1551,8 +1472,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1566,8 +1485,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '874562e1',
|
id: '874562e1',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1580,8 +1497,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -1605,8 +1520,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1620,8 +1533,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '0c5564e0',
|
id: '0c5564e0',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1634,8 +1545,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -1659,8 +1568,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1674,8 +1581,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '0d656701',
|
id: '0d656701',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1686,8 +1591,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '83ef9a1b',
|
id: '83ef9a1b',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.bool,
|
dataType: DataTypes.bool,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1700,8 +1603,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -1726,7 +1627,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'timestamp------false',
|
id: 'timestamp------false',
|
||||||
isColumn: false,
|
|
||||||
key: 'timestamp',
|
key: 'timestamp',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1740,8 +1640,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '918f5b99',
|
id: '918f5b99',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1754,8 +1652,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -1779,8 +1675,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1794,8 +1688,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: 'b355d1aa',
|
id: 'b355d1aa',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1808,8 +1700,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -1874,8 +1764,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1889,8 +1777,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '23450eb8',
|
id: '23450eb8',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1903,8 +1789,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -1917,8 +1801,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1936,8 +1818,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -1951,8 +1831,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '2687dc18',
|
id: '2687dc18',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1965,8 +1843,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -1979,8 +1855,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2002,7 +1876,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2016,8 +1889,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'net.peer.name--string--tag--false',
|
id: 'net.peer.name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'net.peer.name',
|
key: 'net.peer.name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2030,8 +1901,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2049,8 +1918,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: '',
|
type: '',
|
||||||
id: 'response_status_code--string----true',
|
id: 'response_status_code--string----true',
|
||||||
@@ -2100,7 +1967,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
timeAggregation: 'count',
|
timeAggregation: 'count',
|
||||||
@@ -2114,8 +1980,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: domainName,
|
value: domainName,
|
||||||
@@ -2126,8 +1990,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2148,8 +2010,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
reduceTo: 'avg',
|
reduceTo: 'avg',
|
||||||
@@ -2191,8 +2051,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2206,8 +2064,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: 'b78ff216',
|
id: 'b78ff216',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2220,8 +2076,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2235,8 +2089,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'service.name--string--resource--true',
|
id: 'service.name--string--resource--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
},
|
},
|
||||||
@@ -2254,8 +2106,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2269,8 +2119,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: 'a9024472',
|
id: 'a9024472',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2283,8 +2131,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2298,8 +2144,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'service.name--string--resource--true',
|
id: 'service.name--string--resource--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
},
|
},
|
||||||
@@ -2318,7 +2162,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2332,8 +2175,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: '1b6c062d',
|
id: '1b6c062d',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2346,8 +2187,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2361,8 +2200,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'service.name--string--resource--true',
|
id: 'service.name--string--resource--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
},
|
},
|
||||||
@@ -2380,8 +2217,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2395,8 +2230,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: 'd14792a8',
|
id: 'd14792a8',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2406,9 +2239,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
id: '3212bf1a',
|
id: '3212bf1a',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.bool,
|
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2421,8 +2251,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2436,8 +2264,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'service.name--string--resource--true',
|
id: 'service.name--string--resource--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
},
|
},
|
||||||
@@ -2497,7 +2323,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2511,8 +2336,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: 'c6724407',
|
id: 'c6724407',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2525,8 +2348,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2539,8 +2360,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2592,8 +2411,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2607,8 +2424,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
id: 'aae93366',
|
id: 'aae93366',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2621,8 +2436,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2635,8 +2448,6 @@ export const getEndPointDetailsQueryPayload = (
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -2699,7 +2510,6 @@ export const getEndPointZeroStateQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
timeAggregation: 'count',
|
timeAggregation: 'count',
|
||||||
@@ -2713,8 +2523,6 @@ export const getEndPointZeroStateQueryPayload = (
|
|||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: domainName,
|
value: domainName,
|
||||||
@@ -2725,8 +2533,6 @@ export const getEndPointZeroStateQueryPayload = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -2746,8 +2552,6 @@ export const getEndPointZeroStateQueryPayload = (
|
|||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
reduceTo: 'avg',
|
reduceTo: 'avg',
|
||||||
@@ -3280,7 +3084,6 @@ export const getStatusCodeBarChartWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -3294,8 +3097,6 @@ export const getStatusCodeBarChartWidgetData = (
|
|||||||
id: 'c6724407',
|
id: 'c6724407',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -3308,8 +3109,6 @@ export const getStatusCodeBarChartWidgetData = (
|
|||||||
id: '8b1be6f0',
|
id: '8b1be6f0',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.URL_PATH,
|
key: SPAN_ATTRIBUTES.URL_PATH,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -3427,8 +3226,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -3442,8 +3239,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
id: 'ec316e57',
|
id: 'ec316e57',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -3456,8 +3251,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -3483,8 +3276,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -3498,8 +3289,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
id: '46d57857',
|
id: '46d57857',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -3512,8 +3301,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -3540,7 +3327,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'timestamp------false',
|
id: 'timestamp------false',
|
||||||
isColumn: false,
|
|
||||||
key: 'timestamp',
|
key: 'timestamp',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -3554,8 +3340,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
id: '4a237616',
|
id: '4a237616',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -3568,8 +3352,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -3595,8 +3377,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -3610,8 +3390,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
id: 'f162de1e',
|
id: 'f162de1e',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -3622,13 +3400,11 @@ export const getAllEndpointsWidgetData = (
|
|||||||
id: '3df0ac1d',
|
id: '3df0ac1d',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.bool,
|
dataType: DataTypes.bool,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'has_error',
|
key: 'has_error',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'true',
|
value: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '212678b9',
|
id: '212678b9',
|
||||||
@@ -3636,8 +3412,6 @@ export const getAllEndpointsWidgetData = (
|
|||||||
key: 'kind_string',
|
key: 'kind_string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'Client',
|
value: 'Client',
|
||||||
@@ -3773,8 +3547,6 @@ export const getGroupByFiltersFromGroupByValues = (
|
|||||||
id: groupByAttribute?.id || v4(),
|
id: groupByAttribute?.id || v4(),
|
||||||
key: {
|
key: {
|
||||||
dataType: groupByAttribute?.dataType || DataTypes.String,
|
dataType: groupByAttribute?.dataType || DataTypes.String,
|
||||||
isColumn: groupByAttribute?.isColumn || true,
|
|
||||||
isJSON: groupByAttribute?.isJSON || false,
|
|
||||||
key: groupByAttribute?.key || key,
|
key: groupByAttribute?.key || key,
|
||||||
type: groupByAttribute?.type || '',
|
type: groupByAttribute?.type || '',
|
||||||
},
|
},
|
||||||
@@ -3810,7 +3582,6 @@ export const getRateOverTimeWidgetData = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: '------false',
|
id: '------false',
|
||||||
isColumn: false,
|
|
||||||
key: '',
|
key: '',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -3824,8 +3595,6 @@ export const getRateOverTimeWidgetData = (
|
|||||||
id: '3c76fe0b',
|
id: '3c76fe0b',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -3874,8 +3643,6 @@ export const getLatencyOverTimeWidgetData = (
|
|||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'duration_nano',
|
key: 'duration_nano',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -3889,8 +3656,6 @@ export const getLatencyOverTimeWidgetData = (
|
|||||||
id: '63adb3ff',
|
id: '63adb3ff',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
key: SPAN_ATTRIBUTES.SERVER_NAME,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -4000,8 +3765,6 @@ export const getCustomFiltersForBarChart = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'response_status_code--string--tag--false',
|
id: 'response_status_code--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -4013,8 +3776,6 @@ export const getCustomFiltersForBarChart = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'response_status_code--string--tag--false',
|
id: 'response_status_code--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'response_status_code',
|
key: 'response_status_code',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -668,6 +668,18 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const { registerShortcut, deregisterShortcut } = useKeyboardHotkeys();
|
||||||
|
const { updateUserPreferenceInContext } = useAppContext();
|
||||||
|
|
||||||
|
const { mutate: updateUserPreferenceMutation } = useMutation(
|
||||||
|
updateUserPreference,
|
||||||
|
{
|
||||||
|
onError: (error) => {
|
||||||
|
showErrorNotification(notifications, error as AxiosError);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
const sideNavPinnedPreference = userPreferences?.find(
|
const sideNavPinnedPreference = userPreferences?.find(
|
||||||
(preference) => preference.name === USER_PREFERENCES.SIDENAV_PINNED,
|
(preference) => preference.name === USER_PREFERENCES.SIDENAV_PINNED,
|
||||||
)?.value as boolean;
|
)?.value as boolean;
|
||||||
@@ -697,18 +709,6 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
|
|||||||
? sideNavPinnedPreference
|
? sideNavPinnedPreference
|
||||||
: getSidebarStateFromLocalStorage();
|
: getSidebarStateFromLocalStorage();
|
||||||
|
|
||||||
const { registerShortcut, deregisterShortcut } = useKeyboardHotkeys();
|
|
||||||
const { updateUserPreferenceInContext } = useAppContext();
|
|
||||||
|
|
||||||
const { mutate: updateUserPreferenceMutation } = useMutation(
|
|
||||||
updateUserPreference,
|
|
||||||
{
|
|
||||||
onError: (error) => {
|
|
||||||
showErrorNotification(notifications, error as AxiosError);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
const handleToggleSidebar = useCallback((): void => {
|
const handleToggleSidebar = useCallback((): void => {
|
||||||
const newState = !isSideNavPinned;
|
const newState = !isSideNavPinned;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ function ExplorerOrderBy({ query, onChange }: OrderByFilterProps): JSX.Element {
|
|||||||
const keysOptions = createOptions(data?.payload?.attributeKeys || []);
|
const keysOptions = createOptions(data?.payload?.attributeKeys || []);
|
||||||
|
|
||||||
const customOptions = createOptions([
|
const customOptions = createOptions([
|
||||||
{ key: 'timestamp', isColumn: true, type: '', dataType: DataTypes.EMPTY },
|
{ key: 'timestamp', type: '', dataType: DataTypes.EMPTY },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const baseOptions = [
|
const baseOptions = [
|
||||||
|
|||||||
@@ -142,7 +142,6 @@ function ChartPreview({
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}, [query]);
|
}, [query]);
|
||||||
|
|
||||||
const queryResponse = useGetQueryRange(
|
const queryResponse = useGetQueryRange(
|
||||||
{
|
{
|
||||||
query: query || initialQueriesMap.metrics,
|
query: query || initialQueriesMap.metrics,
|
||||||
|
|||||||
@@ -864,7 +864,7 @@ function FormAlertRules({
|
|||||||
queryCategory={currentQuery.queryType}
|
queryCategory={currentQuery.queryType}
|
||||||
setQueryCategory={onQueryCategoryChange}
|
setQueryCategory={onQueryCategoryChange}
|
||||||
alertType={alertType || AlertTypes.METRICS_BASED_ALERT}
|
alertType={alertType || AlertTypes.METRICS_BASED_ALERT}
|
||||||
runQuery={(): void => handleRunQuery(true, true)}
|
runQuery={(): void => handleRunQuery()}
|
||||||
alertDef={alertDef}
|
alertDef={alertDef}
|
||||||
panelType={panelType || PANEL_TYPES.TIME_SERIES}
|
panelType={panelType || PANEL_TYPES.TIME_SERIES}
|
||||||
key={currentQuery.queryType}
|
key={currentQuery.queryType}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const flattenLabels = (labels: Labels): ILabelRecord[] => {
|
|||||||
if (!hiddenLabels.includes(key)) {
|
if (!hiddenLabels.includes(key)) {
|
||||||
recs.push({
|
recs.push({
|
||||||
key,
|
key,
|
||||||
value: labels[key],
|
value: labels[key] || '',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -65,8 +65,6 @@ const mockProps: WidgetGraphComponentProps = {
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'span_id--string----true',
|
id: 'span_id--string----true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'span_id',
|
key: 'span_id',
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ import { Query } from 'types/api/queryBuilder/queryBuilderData';
|
|||||||
import { EQueryType } from 'types/common/dashboard';
|
import { EQueryType } from 'types/common/dashboard';
|
||||||
import { DataSource } from 'types/common/queryBuilder';
|
import { DataSource } from 'types/common/queryBuilder';
|
||||||
|
|
||||||
import { getStepIntervalPoints, updateStepInterval } from '../utils';
|
import { getBarStepIntervalPoints, updateBarStepInterval } from '../utils';
|
||||||
|
|
||||||
describe('GridCardLayout Utils', () => {
|
describe('GridCardLayout Utils', () => {
|
||||||
describe('getStepIntervalPoints', () => {
|
describe('getBarStepIntervalPoints', () => {
|
||||||
it('should return 60 points for duration <= 1 hour', () => {
|
it('should return 60 points for duration <= 1 hour', () => {
|
||||||
// 30 minutes in milliseconds
|
// 30 minutes in milliseconds
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 30 * 60 * 1000;
|
const end = start + 30 * 60 * 1000;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(60);
|
expect(getBarStepIntervalPoints(start, end)).toBe(60);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return 60 points for exactly 1 hour', () => {
|
it('should return 60 points for exactly 1 hour', () => {
|
||||||
@@ -19,7 +19,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 60 * 60 * 1000;
|
const end = start + 60 * 60 * 1000;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(60);
|
expect(getBarStepIntervalPoints(start, end)).toBe(60);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return 120 points for duration <= 3 hours', () => {
|
it('should return 120 points for duration <= 3 hours', () => {
|
||||||
@@ -27,7 +27,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 2 * 60 * 60 * 1000;
|
const end = start + 2 * 60 * 60 * 1000;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(120);
|
expect(getBarStepIntervalPoints(start, end)).toBe(120);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return 120 points for exactly 3 hours', () => {
|
it('should return 120 points for exactly 3 hours', () => {
|
||||||
@@ -35,7 +35,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 3 * 60 * 60 * 1000;
|
const end = start + 3 * 60 * 60 * 1000;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(120);
|
expect(getBarStepIntervalPoints(start, end)).toBe(120);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return 180 points for duration <= 5 hours', () => {
|
it('should return 180 points for duration <= 5 hours', () => {
|
||||||
@@ -43,7 +43,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 4 * 60 * 60 * 1000;
|
const end = start + 4 * 60 * 60 * 1000;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(180);
|
expect(getBarStepIntervalPoints(start, end)).toBe(180);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return 180 points for exactly 5 hours', () => {
|
it('should return 180 points for exactly 5 hours', () => {
|
||||||
@@ -51,7 +51,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 5 * 60 * 60 * 1000;
|
const end = start + 5 * 60 * 60 * 1000;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(180);
|
expect(getBarStepIntervalPoints(start, end)).toBe(180);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should calculate dynamic interval for duration > 5 hours', () => {
|
it('should calculate dynamic interval for duration > 5 hours', () => {
|
||||||
@@ -59,7 +59,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 10 * 60 * 60 * 1000;
|
const end = start + 10 * 60 * 60 * 1000;
|
||||||
|
|
||||||
const result = getStepIntervalPoints(start, end);
|
const result = getBarStepIntervalPoints(start, end);
|
||||||
|
|
||||||
// For 10 hours (600 minutes), interval should be ceil(600/80) = 8, rounded to 10, then * 60 = 600
|
// For 10 hours (600 minutes), interval should be ceil(600/80) = 8, rounded to 10, then * 60 = 600
|
||||||
expect(result).toBe(600);
|
expect(result).toBe(600);
|
||||||
@@ -70,7 +70,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 7 * 24 * 60 * 60 * 1000;
|
const end = start + 7 * 24 * 60 * 60 * 1000;
|
||||||
|
|
||||||
const result = getStepIntervalPoints(start, end);
|
const result = getBarStepIntervalPoints(start, end);
|
||||||
|
|
||||||
// For 7 days (10080 minutes), interval should be ceil(10080/80) = 126, rounded to 130, then * 60 = 7800
|
// For 7 days (10080 minutes), interval should be ceil(10080/80) = 126, rounded to 130, then * 60 = 7800
|
||||||
expect(result).toBe(7800);
|
expect(result).toBe(7800);
|
||||||
@@ -81,7 +81,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 12 * 60 * 60 * 1000;
|
const end = start + 12 * 60 * 60 * 1000;
|
||||||
|
|
||||||
const result = getStepIntervalPoints(start, end);
|
const result = getBarStepIntervalPoints(start, end);
|
||||||
|
|
||||||
// For 12 hours (720 minutes), interval should be ceil(720/80) = 9, rounded to 10, then * 60 = 600
|
// For 12 hours (720 minutes), interval should be ceil(720/80) = 9, rounded to 10, then * 60 = 600
|
||||||
expect(result).toBe(600);
|
expect(result).toBe(600);
|
||||||
@@ -92,24 +92,24 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start + 1 * 60 * 1000;
|
const end = start + 1 * 60 * 1000;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(60);
|
expect(getBarStepIntervalPoints(start, end)).toBe(60);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should handle zero duration', () => {
|
it('should handle zero duration', () => {
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
const end = start;
|
const end = start;
|
||||||
|
|
||||||
expect(getStepIntervalPoints(start, end)).toBe(60);
|
expect(getBarStepIntervalPoints(start, end)).toBe(60);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('updateStepInterval', () => {
|
describe('updateBarStepInterval', () => {
|
||||||
const mockQuery: Query = {
|
const mockQuery: Query = {
|
||||||
queryType: EQueryType.QUERY_BUILDER,
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
builder: {
|
builder: {
|
||||||
queryData: [
|
queryData: [
|
||||||
{
|
{
|
||||||
stepInterval: 60,
|
stepInterval: null,
|
||||||
aggregateOperator: 'avg',
|
aggregateOperator: 'avg',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
queryName: 'A',
|
queryName: 'A',
|
||||||
@@ -142,7 +142,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const minTime = Date.now();
|
const minTime = Date.now();
|
||||||
const maxTime = minTime + 2 * 60 * 60 * 1000;
|
const maxTime = minTime + 2 * 60 * 60 * 1000;
|
||||||
|
|
||||||
const result = updateStepInterval(mockQuery, minTime, maxTime);
|
const result = updateBarStepInterval(mockQuery, minTime, maxTime);
|
||||||
|
|
||||||
expect(result.builder.queryData[0].stepInterval).toBe(120);
|
expect(result.builder.queryData[0].stepInterval).toBe(120);
|
||||||
});
|
});
|
||||||
@@ -151,7 +151,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const minTime = Date.now();
|
const minTime = Date.now();
|
||||||
const maxTime = minTime + 1 * 60 * 60 * 1000;
|
const maxTime = minTime + 1 * 60 * 60 * 1000;
|
||||||
|
|
||||||
const result = updateStepInterval(mockQuery, minTime, maxTime);
|
const result = updateBarStepInterval(mockQuery, minTime, maxTime);
|
||||||
|
|
||||||
expect(result.builder.queryData[0].aggregateOperator).toBe('avg');
|
expect(result.builder.queryData[0].aggregateOperator).toBe('avg');
|
||||||
expect(result.builder.queryData[0].queryName).toBe('A');
|
expect(result.builder.queryData[0].queryName).toBe('A');
|
||||||
@@ -177,7 +177,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const minTime = Date.now();
|
const minTime = Date.now();
|
||||||
const maxTime = minTime + 4 * 60 * 60 * 1000;
|
const maxTime = minTime + 4 * 60 * 60 * 1000;
|
||||||
|
|
||||||
const result = updateStepInterval(multiQueryMock, minTime, maxTime);
|
const result = updateBarStepInterval(multiQueryMock, minTime, maxTime);
|
||||||
|
|
||||||
expect(result.builder.queryData).toHaveLength(2);
|
expect(result.builder.queryData).toHaveLength(2);
|
||||||
expect(result.builder.queryData[0].stepInterval).toBe(180);
|
expect(result.builder.queryData[0].stepInterval).toBe(180);
|
||||||
@@ -201,7 +201,11 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const minTime = Date.now();
|
const minTime = Date.now();
|
||||||
const maxTime = minTime + 1 * 60 * 60 * 1000;
|
const maxTime = minTime + 1 * 60 * 60 * 1000;
|
||||||
|
|
||||||
const result = updateStepInterval(queryWithUndefinedStep, minTime, maxTime);
|
const result = updateBarStepInterval(
|
||||||
|
queryWithUndefinedStep,
|
||||||
|
minTime,
|
||||||
|
maxTime,
|
||||||
|
);
|
||||||
|
|
||||||
expect(result.builder.queryData[0].stepInterval).toBe(60);
|
expect(result.builder.queryData[0].stepInterval).toBe(60);
|
||||||
});
|
});
|
||||||
@@ -210,7 +214,7 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const minTime = Date.now();
|
const minTime = Date.now();
|
||||||
const maxTime = minTime; // Same time = 0 duration
|
const maxTime = minTime; // Same time = 0 duration
|
||||||
|
|
||||||
const result = updateStepInterval(mockQuery, minTime, maxTime);
|
const result = updateBarStepInterval(mockQuery, minTime, maxTime);
|
||||||
|
|
||||||
expect(result.builder.queryData[0].stepInterval).toBe(60);
|
expect(result.builder.queryData[0].stepInterval).toBe(60);
|
||||||
});
|
});
|
||||||
@@ -219,10 +223,66 @@ describe('GridCardLayout Utils', () => {
|
|||||||
const minTime = Date.now();
|
const minTime = Date.now();
|
||||||
const maxTime = minTime + 30 * 24 * 60 * 60 * 1000; // 30 days
|
const maxTime = minTime + 30 * 24 * 60 * 60 * 1000; // 30 days
|
||||||
|
|
||||||
const result = updateStepInterval(mockQuery, minTime, maxTime);
|
const result = updateBarStepInterval(mockQuery, minTime, maxTime);
|
||||||
|
|
||||||
// Should calculate appropriate interval for 30 days
|
// Should calculate appropriate interval for 30 days
|
||||||
expect(result.builder.queryData[0].stepInterval).toBeGreaterThan(180);
|
expect(result.builder.queryData[0].stepInterval).toBeGreaterThan(180);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should handle stepInterval as 0', () => {
|
||||||
|
const queryWithZeroStep: Query = {
|
||||||
|
...mockQuery,
|
||||||
|
builder: {
|
||||||
|
queryData: [
|
||||||
|
{
|
||||||
|
...mockQuery.builder.queryData[0],
|
||||||
|
stepInterval: 0,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
queryFormulas: [],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const minTime = Date.now();
|
||||||
|
let maxTime = minTime + 1 * 60 * 60 * 1000;
|
||||||
|
|
||||||
|
const result = updateBarStepInterval(queryWithZeroStep, minTime, maxTime);
|
||||||
|
|
||||||
|
expect(result.builder.queryData[0].stepInterval).toBe(60);
|
||||||
|
|
||||||
|
maxTime = minTime + 30 * 24 * 60 * 60 * 1000; // 30 days
|
||||||
|
|
||||||
|
const result1 = updateBarStepInterval(queryWithZeroStep, minTime, maxTime);
|
||||||
|
|
||||||
|
expect(result1.builder.queryData[0].stepInterval).toBe(32400);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should respect user entered inputs', () => {
|
||||||
|
const queryWithUserStep: Query = {
|
||||||
|
...mockQuery,
|
||||||
|
builder: {
|
||||||
|
queryData: [
|
||||||
|
{
|
||||||
|
...mockQuery.builder.queryData[0],
|
||||||
|
stepInterval: 120,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
queryFormulas: [],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const minTime = Date.now();
|
||||||
|
let maxTime = minTime + 1 * 60 * 60 * 1000;
|
||||||
|
|
||||||
|
const result = updateBarStepInterval(queryWithUserStep, minTime, maxTime);
|
||||||
|
|
||||||
|
expect(result.builder.queryData[0].stepInterval).toBe(120); // not 60
|
||||||
|
|
||||||
|
maxTime = minTime + 30 * 24 * 60 * 60 * 1000; // 30 days
|
||||||
|
|
||||||
|
const result1 = updateBarStepInterval(queryWithUserStep, minTime, maxTime);
|
||||||
|
|
||||||
|
expect(result1.builder.queryData[0].stepInterval).toBe(120); // not 32400
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -53,10 +53,7 @@ function useUpdatedQuery(): UseUpdatedQueryResult {
|
|||||||
const queryResult = await queryRangeMutation.mutateAsync(queryPayload);
|
const queryResult = await queryRangeMutation.mutateAsync(queryPayload);
|
||||||
|
|
||||||
// Map query data from API response
|
// Map query data from API response
|
||||||
return mapQueryDataFromApi(
|
return mapQueryDataFromApi(queryResult.data.compositeQuery);
|
||||||
queryResult.data.compositeQuery,
|
|
||||||
widgetConfig?.query,
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
[globalSelectedInterval, queryRangeMutation],
|
[globalSelectedInterval, queryRangeMutation],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ export const hasColumnWidthsChanged = (
|
|||||||
* Calculates the step interval in uPlot points (1 minute = 60 points)
|
* Calculates the step interval in uPlot points (1 minute = 60 points)
|
||||||
* based on the time duration between two timestamps in nanoseconds.
|
* based on the time duration between two timestamps in nanoseconds.
|
||||||
*
|
*
|
||||||
|
* NOTE: This function is specifically designed for BAR visualization panels only.
|
||||||
|
*
|
||||||
* Conversion logic:
|
* Conversion logic:
|
||||||
* - <= 1 hr → 1 min (60 points)
|
* - <= 1 hr → 1 min (60 points)
|
||||||
* - <= 3 hr → 2 min (120 points)
|
* - <= 3 hr → 2 min (120 points)
|
||||||
@@ -67,7 +69,7 @@ export const hasColumnWidthsChanged = (
|
|||||||
* @param endNano - end time in nanoseconds
|
* @param endNano - end time in nanoseconds
|
||||||
* @returns stepInterval in uPlot points
|
* @returns stepInterval in uPlot points
|
||||||
*/
|
*/
|
||||||
export function getStepIntervalPoints(
|
export function getBarStepIntervalPoints(
|
||||||
startNano: number,
|
startNano: number,
|
||||||
endNano: number,
|
endNano: number,
|
||||||
): number {
|
): number {
|
||||||
@@ -92,18 +94,18 @@ export function getStepIntervalPoints(
|
|||||||
return roundedInterval * 60; // convert min to points
|
return roundedInterval * 60; // convert min to points
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateStepInterval(
|
export function updateBarStepInterval(
|
||||||
query: Query,
|
query: Query,
|
||||||
minTime: number,
|
minTime: number,
|
||||||
maxTime: number,
|
maxTime: number,
|
||||||
): Query {
|
): Query {
|
||||||
const stepIntervalPoints = getStepIntervalPoints(minTime, maxTime);
|
const stepIntervalPoints = getBarStepIntervalPoints(minTime, maxTime);
|
||||||
|
|
||||||
// if user haven't enter anything manually, that is we have default value of 60 then do the interval adjustment for bar otherwise apply the user's value
|
// if user haven't enter anything manually, that is we have default value of 60 then do the interval adjustment for bar otherwise apply the user's value
|
||||||
const getSteps = (queryData: IBuilderQuery): number =>
|
const getBarSteps = (queryData: IBuilderQuery): number | null =>
|
||||||
queryData?.stepInterval === 60
|
!queryData.stepInterval
|
||||||
? stepIntervalPoints || 60
|
? stepIntervalPoints || null
|
||||||
: queryData?.stepInterval || 60;
|
: queryData?.stepInterval;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...query,
|
...query,
|
||||||
@@ -112,7 +114,7 @@ export function updateStepInterval(
|
|||||||
queryData: [
|
queryData: [
|
||||||
...(query?.builder?.queryData ?? []).map((queryData) => ({
|
...(query?.builder?.queryData ?? []).map((queryData) => ({
|
||||||
...queryData,
|
...queryData,
|
||||||
stepInterval: getSteps(queryData),
|
stepInterval: getBarSteps(queryData),
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -105,8 +105,6 @@ export const widgetQueryWithLegend = {
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: 'float64',
|
dataType: 'float64',
|
||||||
id: 'signoz_latency--float64--ExponentialHistogram--true',
|
id: 'signoz_latency--float64--ExponentialHistogram--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'signoz_latency',
|
key: 'signoz_latency',
|
||||||
type: 'ExponentialHistogram',
|
type: 'ExponentialHistogram',
|
||||||
},
|
},
|
||||||
@@ -126,8 +124,6 @@ export const widgetQueryWithLegend = {
|
|||||||
groupBy: [
|
groupBy: [
|
||||||
{
|
{
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'service_name',
|
key: 'service_name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
id: 'service_name--string--tag--false',
|
id: 'service_name--string--tag--false',
|
||||||
@@ -143,8 +139,6 @@ export const widgetQueryWithLegend = {
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: 'float64',
|
dataType: 'float64',
|
||||||
id: 'system_disk_operations--float64--Sum--true',
|
id: 'system_disk_operations--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'system_disk_operations',
|
key: 'system_disk_operations',
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -220,18 +220,10 @@ function ServiceMetrics({
|
|||||||
() =>
|
() =>
|
||||||
getQueryRangeRequestData({
|
getQueryRangeRequestData({
|
||||||
topLevelOperations,
|
topLevelOperations,
|
||||||
minTime: timeRange.startTime * 1e6,
|
|
||||||
maxTime: timeRange.endTime * 1e6,
|
|
||||||
globalSelectedInterval,
|
globalSelectedInterval,
|
||||||
dotMetricsEnabled,
|
dotMetricsEnabled,
|
||||||
}),
|
}),
|
||||||
[
|
[globalSelectedInterval, topLevelOperations, dotMetricsEnabled],
|
||||||
globalSelectedInterval,
|
|
||||||
timeRange.endTime,
|
|
||||||
timeRange.startTime,
|
|
||||||
topLevelOperations,
|
|
||||||
dotMetricsEnabled,
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const dataQueries = useGetQueriesRange(
|
const dataQueries = useGetQueriesRange(
|
||||||
|
|||||||
@@ -182,8 +182,6 @@ export const HostsQuickFiltersConfig: IQuickFiltersConfig[] = [
|
|||||||
key: 'host_name',
|
key: 'host_name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: 'system_cpu_load_average_15m',
|
aggregateAttribute: 'system_cpu_load_average_15m',
|
||||||
@@ -197,8 +195,6 @@ export const HostsQuickFiltersConfig: IQuickFiltersConfig[] = [
|
|||||||
key: 'os_type',
|
key: 'os_type',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: 'system_cpu_load_average_15m',
|
aggregateAttribute: 'system_cpu_load_average_15m',
|
||||||
@@ -230,8 +226,6 @@ export function GetHostsQuickFiltersConfig(
|
|||||||
key: hostNameKey,
|
key: hostNameKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: metricName,
|
aggregateAttribute: metricName,
|
||||||
@@ -245,8 +239,6 @@ export function GetHostsQuickFiltersConfig(
|
|||||||
key: osTypeKey,
|
key: osTypeKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: metricName,
|
aggregateAttribute: metricName,
|
||||||
@@ -260,8 +252,6 @@ export function GetHostsQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,8 +122,6 @@ function ClusterDetails({
|
|||||||
key: QUERY_KEYS.K8S_CLUSTER_NAME,
|
key: QUERY_KEYS.K8S_CLUSTER_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_cluster_name--string--resource--false',
|
id: 'k8s_cluster_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -150,8 +148,6 @@ function ClusterDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -163,8 +159,6 @@ function ClusterDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -147,8 +147,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -163,8 +161,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -190,8 +186,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -206,8 +200,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -233,8 +225,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -249,8 +239,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -276,8 +264,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_allocatable_cpu--float64--Gauge--true',
|
id: 'k8s_node_allocatable_cpu--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeAllocatableCpuKey,
|
key: k8sNodeAllocatableCpuKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -292,8 +278,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -352,8 +336,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -368,8 +350,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -395,8 +375,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -411,8 +389,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -438,8 +414,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -454,8 +428,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -481,8 +453,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_allocatable_memory--float64--Gauge--true',
|
id: 'k8s_node_allocatable_memory--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeAllocatableMemoryKey,
|
key: k8sNodeAllocatableMemoryKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -497,8 +467,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -557,8 +525,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_condition_ready--float64--Gauge--true',
|
id: 'k8s_node_condition_ready--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeConditionReadyKey,
|
key: k8sNodeConditionReadyKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -573,8 +539,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -589,8 +553,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -648,8 +610,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_condition_ready--float64--Gauge--true',
|
id: 'k8s_node_condition_ready--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeConditionReadyKey,
|
key: k8sNodeConditionReadyKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -664,8 +624,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -680,8 +638,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -739,8 +695,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_deployment_available--float64--Gauge--true',
|
id: 'k8s_deployment_available--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentAvailableKey,
|
key: k8sDeploymentAvailableKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -755,8 +709,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -771,16 +723,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_deployment_name--string--tag--false',
|
id: 'k8s_deployment_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -799,8 +747,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_deployment_desired--float64--Gauge--true',
|
id: 'k8s_deployment_desired--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentDesiredKey,
|
key: k8sDeploymentDesiredKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -815,8 +761,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -831,16 +775,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_deployment_name--string--tag--false',
|
id: 'k8s_deployment_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -904,8 +844,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_statefulset_current_pods--float64--Gauge--true',
|
id: 'k8s_statefulset_current_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetCurrentPodsKey,
|
key: k8sStatefulsetCurrentPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -920,8 +858,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -936,16 +872,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_statefulset_name--string--tag--false',
|
id: 'k8s_statefulset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -964,8 +896,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_statefulset_desired_pods--float64--Gauge--true',
|
id: 'k8s_statefulset_desired_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetDesiredPodsKey,
|
key: k8sStatefulsetDesiredPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -980,8 +910,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -996,16 +924,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_statefulset_name--string--tag--false',
|
id: 'k8s_statefulset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1024,8 +948,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_statefulset_ready_pods--float64--Gauge--true',
|
id: 'k8s_statefulset_ready_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetReadyPodsKey,
|
key: k8sStatefulsetReadyPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1040,8 +962,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1056,16 +976,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_statefulset_name--string--tag--false',
|
id: 'k8s_statefulset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1084,8 +1000,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_statefulset_updated_pods--float64--Gauge--true',
|
id: 'k8s_statefulset_updated_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetUpdatedPodsKey,
|
key: k8sStatefulsetUpdatedPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1100,8 +1014,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1116,16 +1028,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_statefulset_name--string--tag--false',
|
id: 'k8s_statefulset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1213,8 +1121,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_daemonset_current_scheduled_nodes--float64--Gauge--true',
|
id: 'k8s_daemonset_current_scheduled_nodes--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetCurrentScheduledNodesKey,
|
key: k8sDaemonsetCurrentScheduledNodesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1229,8 +1135,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1245,8 +1149,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_daemonset_name--string--tag--false',
|
id: 'k8s_daemonset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1265,8 +1167,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_daemonset_desired_scheduled_nodes--float64--Gauge--true',
|
id: 'k8s_daemonset_desired_scheduled_nodes--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetDesiredScheduledNodesKey,
|
key: k8sDaemonsetDesiredScheduledNodesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1281,8 +1181,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1297,8 +1195,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_daemonset_name--string--tag--false',
|
id: 'k8s_daemonset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1317,8 +1213,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_daemonset_ready_nodes--float64--Gauge--true',
|
id: 'k8s_daemonset_ready_nodes--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetReadyNodesKey,
|
key: k8sDaemonsetReadyNodesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1333,8 +1227,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1349,8 +1241,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_daemonset_name--string--tag--false',
|
id: 'k8s_daemonset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1426,8 +1316,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_job_active_pods--float64--Gauge--true',
|
id: 'k8s_job_active_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobActivePodsKey,
|
key: k8sJobActivePodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1442,8 +1330,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1458,16 +1344,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1486,8 +1368,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_job_successful_pods--float64--Gauge--true',
|
id: 'k8s_job_successful_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobSuccessfulPodsKey,
|
key: k8sJobSuccessfulPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1502,8 +1382,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1518,16 +1396,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1546,8 +1420,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_job_failed_pods--float64--Gauge--true',
|
id: 'k8s_job_failed_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobFailedPodsKey,
|
key: k8sJobFailedPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1562,8 +1434,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1578,16 +1448,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1606,8 +1472,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_job_desired_successful_pods--float64--Gauge--true',
|
id: 'k8s_job_desired_successful_pods--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobDesiredSuccessfulPodsKey,
|
key: k8sJobDesiredSuccessfulPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1622,8 +1486,6 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1638,16 +1500,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -121,8 +121,6 @@ function DaemonSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_DAEMON_SET_NAME,
|
key: QUERY_KEYS.K8S_DAEMON_SET_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_daemonSet_name--string--resource--false',
|
id: 'k8s_daemonSet_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -134,8 +132,6 @@ function DaemonSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_daemonSet_name--string--resource--false',
|
id: 'k8s_daemonSet_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -166,8 +162,6 @@ function DaemonSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -179,8 +173,6 @@ function DaemonSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -85,8 +85,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -101,8 +99,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_daemonset_name--string--tag--false',
|
id: 'k8s_daemonset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonSetNameKey,
|
key: k8sDaemonSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -114,8 +110,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -141,8 +135,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuRequestKey,
|
key: k8sContainerCpuRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -157,8 +149,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -170,8 +160,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -197,8 +185,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_limit--float64--Gauge--true',
|
id: 'k8s_container_cpu_limit--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuLimitKey,
|
key: k8sContainerCpuLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -213,8 +199,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -226,8 +210,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -286,8 +268,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -302,8 +282,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_daemonset_name--string--tag--false',
|
id: 'k8s_daemonset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonSetNameKey,
|
key: k8sDaemonSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -315,8 +293,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -342,8 +318,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_request--float64--Gauge--true',
|
id: 'k8s_container_memory_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryRequestKey,
|
key: k8sContainerMemoryRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -358,8 +332,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -371,8 +343,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -398,8 +368,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_limit--float64--Gauge--true',
|
id: 'k8s_container_memory_limit--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryLimitKey,
|
key: k8sContainerMemoryLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -414,8 +382,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -427,8 +393,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -487,8 +451,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_io--float64--Sum--true',
|
id: 'k8s_pod_network_io--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkIoKey,
|
key: k8sPodNetworkIoKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -503,8 +465,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_daemonset_name--string--tag--false',
|
id: 'k8s_daemonset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonSetNameKey,
|
key: k8sDaemonSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -516,8 +476,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -532,16 +490,12 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -593,8 +547,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_errors--float64--Sum--true',
|
id: 'k8s_pod_network_errors--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkErrorsKey,
|
key: k8sPodNetworkErrorsKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -609,8 +561,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_daemonset_name--string--tag--false',
|
id: 'k8s_daemonset_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonSetNameKey,
|
key: k8sDaemonSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -622,8 +572,6 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -638,16 +586,12 @@ export const getDaemonSetMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -125,8 +125,6 @@ function DeploymentDetails({
|
|||||||
key: QUERY_KEYS.K8S_DEPLOYMENT_NAME,
|
key: QUERY_KEYS.K8S_DEPLOYMENT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_deployment_name--string--resource--false',
|
id: 'k8s_deployment_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -138,8 +136,6 @@ function DeploymentDetails({
|
|||||||
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_deployment_name--string--resource--false',
|
id: 'k8s_deployment_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -170,8 +166,6 @@ function DeploymentDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -183,8 +177,6 @@ function DeploymentDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -81,8 +81,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -97,8 +95,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_deployment_name--string--tag--false',
|
id: 'k8s_deployment_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -124,8 +120,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuRequestKey,
|
key: k8sContainerCpuRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -140,8 +134,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -167,8 +159,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_limit--float64--Gauge--true',
|
id: 'k8s_container_cpu_limit--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuLimitKey,
|
key: k8sContainerCpuLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -183,8 +173,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -243,8 +231,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -259,8 +245,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_deployment_name--string--tag--false',
|
id: 'k8s_deployment_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -286,8 +270,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_request--float64--Gauge--true',
|
id: 'k8s_container_memory_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryRequestKey,
|
key: k8sContainerMemoryRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -302,8 +284,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -329,8 +309,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_limit--float64--Gauge--true',
|
id: 'k8s_container_memory_limit--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryLimitKey,
|
key: k8sContainerMemoryLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -345,8 +323,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -405,8 +381,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_io--float64--Sum--true',
|
id: 'k8s_pod_network_io--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkIoKey,
|
key: k8sPodNetworkIoKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -421,8 +395,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_deployment_name--string--tag--false',
|
id: 'k8s_deployment_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -437,16 +409,12 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -498,8 +466,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_errors--float64--Sum--true',
|
id: 'k8s_pod_network_errors--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkErrorsKey,
|
key: k8sPodNetworkErrorsKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -514,8 +480,6 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_deployment_name--string--tag--false',
|
id: 'k8s_deployment_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -530,16 +494,12 @@ export const getDeploymentMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -93,10 +93,8 @@ const mockFilters: IBuilderQuery['filters'] = {
|
|||||||
key: {
|
key: {
|
||||||
id: 'pod-name',
|
id: 'pod-name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
key: 'pod-name',
|
key: 'pod-name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isJSON: false,
|
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -99,10 +99,8 @@ const mockTracesFilters: IBuilderQuery['filters'] = {
|
|||||||
key: {
|
key: {
|
||||||
id: 'service-name',
|
id: 'service-name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isJSON: false,
|
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -54,9 +54,7 @@ export const getEntityEventsOrLogsQueryPayload = (
|
|||||||
id: '------false',
|
id: '------false',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
timeAggregation: 'rate',
|
timeAggregation: 'rate',
|
||||||
spaceAggregation: 'sum',
|
spaceAggregation: 'sum',
|
||||||
@@ -158,37 +156,31 @@ export const selectedEntityTracesColumns: BaseAutocompleteData[] = [
|
|||||||
key: 'timestamp',
|
key: 'timestamp',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'serviceName',
|
key: 'serviceName',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'name',
|
key: 'name',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'durationNano',
|
key: 'durationNano',
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'httpMethod',
|
key: 'httpMethod',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'responseStatusCode',
|
key: 'responseStatusCode',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -211,9 +203,7 @@ export const getEntityTracesQueryPayload = (
|
|||||||
id: '------false',
|
id: '------false',
|
||||||
dataType: DataTypes.EMPTY,
|
dataType: DataTypes.EMPTY,
|
||||||
key: '',
|
key: '',
|
||||||
isColumn: false,
|
|
||||||
type: '',
|
type: '',
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
timeAggregation: 'rate',
|
timeAggregation: 'rate',
|
||||||
spaceAggregation: 'sum',
|
spaceAggregation: 'sum',
|
||||||
@@ -257,8 +247,6 @@ export const getEntityTracesQueryPayload = (
|
|||||||
key: 'serviceName',
|
key: 'serviceName',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'serviceName--string--tag--true',
|
id: 'serviceName--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -266,8 +254,6 @@ export const getEntityTracesQueryPayload = (
|
|||||||
key: 'name',
|
key: 'name',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'name--string--tag--true',
|
id: 'name--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -275,8 +261,6 @@ export const getEntityTracesQueryPayload = (
|
|||||||
key: 'durationNano',
|
key: 'durationNano',
|
||||||
dataType: 'float64',
|
dataType: 'float64',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'durationNano--float64--tag--true',
|
id: 'durationNano--float64--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -284,8 +268,6 @@ export const getEntityTracesQueryPayload = (
|
|||||||
key: 'httpMethod',
|
key: 'httpMethod',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'httpMethod--string--tag--true',
|
id: 'httpMethod--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
@@ -293,8 +275,6 @@ export const getEntityTracesQueryPayload = (
|
|||||||
key: 'responseStatusCode',
|
key: 'responseStatusCode',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'responseStatusCode--string--tag--true',
|
id: 'responseStatusCode--string--tag--true',
|
||||||
isIndexed: false,
|
isIndexed: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -118,8 +118,6 @@ function JobDetails({
|
|||||||
key: QUERY_KEYS.K8S_JOB_NAME,
|
key: QUERY_KEYS.K8S_JOB_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_job_name--string--resource--false',
|
id: 'k8s_job_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -131,8 +129,6 @@ function JobDetails({
|
|||||||
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_job_name--string--resource--false',
|
id: 'k8s_job_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -159,8 +155,6 @@ function JobDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -172,8 +166,6 @@ function JobDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -60,8 +60,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -76,8 +74,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -89,8 +85,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -149,8 +143,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -165,8 +157,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -178,8 +168,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -238,8 +226,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_io--float64--Sum--true',
|
id: 'k8s_pod_network_io--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkIoKey,
|
key: k8sPodNetworkIoKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -254,8 +240,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -267,8 +251,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -283,16 +265,12 @@ export const getJobMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -344,8 +322,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_errors--float64--Sum--true',
|
id: 'k8s_pod_network_errors--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkErrorsKey,
|
key: k8sPodNetworkErrorsKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -360,8 +336,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_job_name--string--tag--false',
|
id: 'k8s_job_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
key: k8sJobNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -373,8 +347,6 @@ export const getJobMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -389,16 +361,12 @@ export const getJobMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,8 +122,6 @@ function NamespaceDetails({
|
|||||||
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_namespace_name--string--resource--false',
|
id: 'k8s_namespace_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -150,8 +148,6 @@ function NamespaceDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -163,8 +159,6 @@ function NamespaceDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -155,8 +155,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodCpuUtilizationKey,
|
id: k8sPodCpuUtilizationKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -171,8 +169,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -198,8 +194,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sContainerCpuRequestKey,
|
id: k8sContainerCpuRequestKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuRequestKey,
|
key: k8sContainerCpuRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -214,8 +208,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -241,8 +233,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodCpuUtilizationKey,
|
id: k8sPodCpuUtilizationKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -257,8 +247,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -284,8 +272,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodCpuUtilizationKey,
|
id: k8sPodCpuUtilizationKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -300,8 +286,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -360,8 +344,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodMemoryUsageKey,
|
id: k8sPodMemoryUsageKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -376,8 +358,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -403,8 +383,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sContainerMemoryRequestKey,
|
id: k8sContainerMemoryRequestKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryRequestKey,
|
key: k8sContainerMemoryRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -419,8 +397,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -446,8 +422,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodMemoryWorkingSetKey,
|
id: k8sPodMemoryWorkingSetKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryWorkingSetKey,
|
key: k8sPodMemoryWorkingSetKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -462,8 +436,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -489,8 +461,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodMemoryRssKey,
|
id: k8sPodMemoryRssKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryRssKey,
|
key: k8sPodMemoryRssKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -505,8 +475,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -532,8 +500,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodMemoryUsageKey,
|
id: k8sPodMemoryUsageKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -548,8 +514,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -575,8 +539,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodMemoryUsageKey,
|
id: k8sPodMemoryUsageKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -591,8 +553,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -651,8 +611,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodCpuUtilizationKey,
|
id: k8sPodCpuUtilizationKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -667,8 +625,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -683,8 +639,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sPodNameKey,
|
id: k8sPodNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -736,8 +690,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodMemoryUsageKey,
|
id: k8sPodMemoryUsageKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -752,8 +704,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -768,8 +718,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sPodNameKey,
|
id: k8sPodNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -821,8 +769,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sPodNetworkIoKey,
|
id: k8sPodNetworkIoKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkIoKey,
|
key: k8sPodNetworkIoKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -837,8 +783,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -853,16 +797,12 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface',
|
id: 'interface',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction',
|
id: 'direction',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -914,8 +854,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sPodNetworkErrorsKey,
|
id: k8sPodNetworkErrorsKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkErrorsKey,
|
key: k8sPodNetworkErrorsKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -930,8 +868,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -946,16 +882,12 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface',
|
id: 'interface',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction',
|
id: 'direction',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1007,8 +939,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sStatefulsetCurrentPodsKey,
|
id: k8sStatefulsetCurrentPodsKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetCurrentPodsKey,
|
key: k8sStatefulsetCurrentPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1023,8 +953,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sStatefulsetNameKey,
|
id: k8sStatefulsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1039,8 +967,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sStatefulsetNameKey,
|
id: k8sStatefulsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1059,8 +985,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sStatefulsetDesiredPodsKey,
|
id: k8sStatefulsetDesiredPodsKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetDesiredPodsKey,
|
key: k8sStatefulsetDesiredPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1075,8 +999,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1091,8 +1013,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sStatefulsetNameKey,
|
id: k8sStatefulsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1111,8 +1031,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sStatefulsetUpdatedPodsKey,
|
id: k8sStatefulsetUpdatedPodsKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetUpdatedPodsKey,
|
key: k8sStatefulsetUpdatedPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1127,8 +1045,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1143,8 +1059,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sStatefulsetNameKey,
|
id: k8sStatefulsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulsetNameKey,
|
key: k8sStatefulsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1196,8 +1110,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sReplicasetDesiredKey,
|
id: k8sReplicasetDesiredKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sReplicasetDesiredKey,
|
key: k8sReplicasetDesiredKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1212,8 +1124,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1228,8 +1138,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sReplicasetNameKey,
|
id: k8sReplicasetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sReplicasetNameKey,
|
key: k8sReplicasetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1254,8 +1162,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sReplicasetAvailableKey,
|
id: k8sReplicasetAvailableKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sReplicasetAvailableKey,
|
key: k8sReplicasetAvailableKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1270,8 +1176,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1286,8 +1190,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sReplicasetNameKey,
|
id: k8sReplicasetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sReplicasetNameKey,
|
key: k8sReplicasetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1345,8 +1247,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sDaemonsetDesiredScheduledNamespacesKey,
|
id: k8sDaemonsetDesiredScheduledNamespacesKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetDesiredScheduledNamespacesKey,
|
key: k8sDaemonsetDesiredScheduledNamespacesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1361,8 +1261,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1377,8 +1275,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sDaemonsetNameKey,
|
id: k8sDaemonsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1397,8 +1293,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sDaemonsetCurrentScheduledNamespacesKey,
|
id: k8sDaemonsetCurrentScheduledNamespacesKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetCurrentScheduledNamespacesKey,
|
key: k8sDaemonsetCurrentScheduledNamespacesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1413,8 +1307,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1429,8 +1321,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sDaemonsetNameKey,
|
id: k8sDaemonsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1449,8 +1339,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sDaemonsetReadyNamespacesKey,
|
id: k8sDaemonsetReadyNamespacesKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetReadyNamespacesKey,
|
key: k8sDaemonsetReadyNamespacesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1465,8 +1353,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1481,8 +1367,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sDaemonsetNameKey,
|
id: k8sDaemonsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1501,8 +1385,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sDaemonsetMisscheduledNamespacesKey,
|
id: k8sDaemonsetMisscheduledNamespacesKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetMisscheduledNamespacesKey,
|
key: k8sDaemonsetMisscheduledNamespacesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1517,8 +1399,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1533,8 +1413,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sDaemonsetNameKey,
|
id: k8sDaemonsetNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1586,8 +1464,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sDeploymentDesiredKey,
|
id: k8sDeploymentDesiredKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentDesiredKey,
|
key: k8sDeploymentDesiredKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1602,8 +1478,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1618,8 +1492,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sDeploymentNameKey,
|
id: k8sDeploymentNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1638,8 +1510,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: k8sDeploymentAvailableKey,
|
id: k8sDeploymentAvailableKey,
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentAvailableKey,
|
key: k8sDeploymentAvailableKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1654,8 +1524,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sNamespaceNameKey,
|
id: k8sNamespaceNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1670,8 +1538,6 @@ export const getNamespaceMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: k8sDeploymentNameKey,
|
id: k8sDeploymentNameKey,
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sDeploymentNameKey,
|
key: k8sDeploymentNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,8 +122,6 @@ function NodeDetails({
|
|||||||
key: QUERY_KEYS.K8S_NODE_NAME,
|
key: QUERY_KEYS.K8S_NODE_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_node_name--string--resource--false',
|
id: 'k8s_node_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -150,8 +148,6 @@ function NodeDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -163,8 +159,6 @@ function NodeDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -148,8 +148,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeCpuUtilizationKey,
|
key: k8sNodeCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -164,8 +162,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -191,8 +187,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_allocatable_cpu--float64--Gauge--true',
|
id: 'k8s_node_allocatable_cpu--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeAllocatableCpuKey,
|
key: k8sNodeAllocatableCpuKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -207,8 +201,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -234,8 +226,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuRequestKey,
|
key: k8sContainerCpuRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -250,8 +240,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -277,8 +265,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeCpuUtilizationKey,
|
key: k8sNodeCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -293,8 +279,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -320,8 +304,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeCpuUtilizationKey,
|
key: k8sNodeCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -336,8 +318,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -396,8 +376,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeMemoryUsageKey,
|
key: k8sNodeMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -412,8 +390,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -439,8 +415,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_allocatable_memory--float64--Gauge--true',
|
id: 'k8s_node_allocatable_memory--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeAllocatableMemoryKey,
|
key: k8sNodeAllocatableMemoryKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -455,8 +429,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -482,8 +454,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_request--float64--Gauge--true',
|
id: 'k8s_container_memory_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryRequestKey,
|
key: k8sContainerMemoryRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -498,8 +468,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -525,8 +493,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeMemoryUsageKey,
|
key: k8sNodeMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -541,8 +507,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -568,8 +532,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeMemoryUsageKey,
|
key: k8sNodeMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -584,8 +546,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -611,8 +571,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_memory_working_set--float64--Gauge--true',
|
id: 'k8s_node_memory_working_set--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeMemoryWorkingSetKey,
|
key: k8sNodeMemoryWorkingSetKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -627,8 +585,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -654,8 +610,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_memory_rss--float64--Gauge--true',
|
id: 'k8s_node_memory_rss--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeMemoryRssKey,
|
key: k8sNodeMemoryRssKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -670,8 +624,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -730,8 +682,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
id: 'k8s_node_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeCpuUtilizationKey,
|
key: k8sNodeCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -746,8 +696,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -773,8 +721,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_allocatable_cpu--float64--Gauge--true',
|
id: 'k8s_node_allocatable_cpu--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeAllocatableCpuKey,
|
key: k8sNodeAllocatableCpuKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -789,8 +735,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -816,8 +760,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuRequestKey,
|
key: k8sContainerCpuRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -832,8 +774,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -905,8 +845,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
id: 'k8s_node_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeMemoryUsageKey,
|
key: k8sNodeMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -921,8 +859,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -948,8 +884,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_allocatable_memory--float64--Gauge--true',
|
id: 'k8s_node_allocatable_memory--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeAllocatableMemoryKey,
|
key: k8sNodeAllocatableMemoryKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -964,8 +898,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -991,8 +923,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_request--float64--Gauge--true',
|
id: 'k8s_container_memory_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryRequestKey,
|
key: k8sContainerMemoryRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1007,8 +937,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1080,8 +1008,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilizationKey,
|
key: k8sPodCpuUtilizationKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1096,8 +1022,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1112,8 +1036,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1165,8 +1087,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemoryUsageKey,
|
key: k8sPodMemoryUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1181,8 +1101,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1197,8 +1115,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1250,8 +1166,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_network_errors--float64--Sum--true',
|
id: 'k8s_node_network_errors--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNetworkErrorsKey,
|
key: k8sNodeNetworkErrorsKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -1266,8 +1180,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1282,16 +1194,12 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1343,8 +1251,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_network_io--float64--Sum--true',
|
id: 'k8s_node_network_io--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNetworkIoKey,
|
key: k8sNodeNetworkIoKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -1359,8 +1265,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1375,16 +1279,12 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1436,8 +1336,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_filesystem_usage--float64--Gauge--true',
|
id: 'k8s_node_filesystem_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeFilesystemUsageKey,
|
key: k8sNodeFilesystemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1452,8 +1350,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1479,8 +1375,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_filesystem_capacity--float64--Gauge--true',
|
id: 'k8s_node_filesystem_capacity--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeFilesystemCapacityKey,
|
key: k8sNodeFilesystemCapacityKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1495,8 +1389,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1522,8 +1414,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_filesystem_available--float64--Gauge--true',
|
id: 'k8s_node_filesystem_available--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeFilesystemAvailableKey,
|
key: k8sNodeFilesystemAvailableKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1538,8 +1428,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1598,8 +1486,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_filesystem_usage--float64--Gauge--true',
|
id: 'k8s_node_filesystem_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeFilesystemUsageKey,
|
key: k8sNodeFilesystemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1614,8 +1500,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1641,8 +1525,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_node_filesystem_capacity--float64--Gauge--true',
|
id: 'k8s_node_filesystem_capacity--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeFilesystemCapacityKey,
|
key: k8sNodeFilesystemCapacityKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1657,8 +1539,6 @@ export const getNodeMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_node_name--string--tag--false',
|
id: 'k8s_node_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNodeNameKey,
|
key: k8sNodeNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -126,8 +126,6 @@ function PodDetails({
|
|||||||
key: QUERY_KEYS.K8S_POD_NAME,
|
key: QUERY_KEYS.K8S_POD_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_pod_name--string--resource--false',
|
id: 'k8s_pod_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -139,8 +137,6 @@ function PodDetails({
|
|||||||
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_pod_name--string--resource--false',
|
id: 'k8s_pod_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -167,8 +163,6 @@ function PodDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -180,8 +174,6 @@ function PodDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -187,8 +187,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilKey,
|
key: k8sPodCpuUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -203,8 +201,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -216,8 +212,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -243,8 +237,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilKey,
|
key: k8sPodCpuUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -259,8 +251,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -272,8 +262,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -299,8 +287,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
id: 'k8s_pod_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilKey,
|
key: k8sPodCpuUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -315,8 +301,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -328,8 +312,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -388,8 +370,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_request_utilization--float64--Gauge--true',
|
id: 'k8s_pod_cpu_request_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuReqUtilKey,
|
key: k8sPodCpuReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -404,8 +384,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -417,8 +395,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -444,8 +420,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_limit_utilization--float64--Gauge--true',
|
id: 'k8s_pod_cpu_limit_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuLimitUtilKey,
|
key: k8sPodCpuLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -460,8 +434,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -473,8 +445,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -500,8 +470,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_request_utilization--float64--Gauge--true',
|
id: 'k8s_pod_cpu_request_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuReqUtilKey,
|
key: k8sPodCpuReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -516,8 +484,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -529,8 +495,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -556,8 +520,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_request_utilization--float64--Gauge--true',
|
id: 'k8s_pod_cpu_request_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuReqUtilKey,
|
key: k8sPodCpuReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -572,8 +534,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -585,8 +545,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -612,8 +570,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_limit_utilization--float64--Gauge--true',
|
id: 'k8s_pod_cpu_limit_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuLimitUtilKey,
|
key: k8sPodCpuLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -628,8 +584,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -641,8 +595,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -668,8 +620,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_cpu_limit_utilization--float64--Gauge--true',
|
id: 'k8s_pod_cpu_limit_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuLimitUtilKey,
|
key: k8sPodCpuLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -684,8 +634,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -697,8 +645,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -757,8 +703,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemUsageKey,
|
key: k8sPodMemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -773,8 +717,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -786,8 +728,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -813,8 +753,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemUsageKey,
|
key: k8sPodMemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -829,8 +767,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -842,8 +778,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -869,8 +803,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
id: 'k8s_pod_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemUsageKey,
|
key: k8sPodMemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -885,8 +817,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -898,8 +828,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -958,8 +886,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_request_utilization--float64--Gauge--true',
|
id: 'k8s_pod_memory_request_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemReqUtilKey,
|
key: k8sPodMemReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -974,8 +900,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -987,8 +911,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1014,8 +936,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_limit_utilization--float64--Gauge--true',
|
id: 'k8s_pod_memory_limit_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemLimitUtilKey,
|
key: k8sPodMemLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1030,8 +950,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1043,8 +961,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1070,8 +986,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_request_utilization--float64--Gauge--true',
|
id: 'k8s_pod_memory_request_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemReqUtilKey,
|
key: k8sPodMemReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1086,8 +1000,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1099,8 +1011,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1126,8 +1036,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_limit_utilization--float64--Gauge--true',
|
id: 'k8s_pod_memory_limit_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemLimitUtilKey,
|
key: k8sPodMemLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1142,8 +1050,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1155,8 +1061,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1182,8 +1086,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_request_utilization--float64--Gauge--true',
|
id: 'k8s_pod_memory_request_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemReqUtilKey,
|
key: k8sPodMemReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1198,8 +1100,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1211,8 +1111,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1238,8 +1136,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_limit_utilization--float64--Gauge--true',
|
id: 'k8s_pod_memory_limit_utilization--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemLimitUtilKey,
|
key: k8sPodMemLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1254,8 +1150,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1267,8 +1161,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1327,8 +1219,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_rss--float64--Gauge--true',
|
id: 'k8s_pod_memory_rss--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemRssKey,
|
key: k8sPodMemRssKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1343,8 +1233,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1356,8 +1244,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1383,8 +1269,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_working_set--float64--Gauge--true',
|
id: 'k8s_pod_memory_working_set--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemWorkingSetKey,
|
key: k8sPodMemWorkingSetKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1399,8 +1283,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1412,8 +1294,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1479,8 +1359,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_memory_major_page_faults--float64--Gauge--true',
|
id: 'k8s_pod_memory_major_page_faults--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemMajorPFKey,
|
key: k8sPodMemMajorPFKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1495,8 +1373,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1508,8 +1384,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1568,8 +1442,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'container_cpu_usage--float64--Gauge--true',
|
id: 'container_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: containerCpuUtilKey,
|
key: containerCpuUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1584,8 +1456,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1597,8 +1467,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1613,8 +1481,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1666,8 +1532,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'container_cpu_usage--float64--Gauge--true',
|
id: 'container_cpu_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: containerCpuUtilKey,
|
key: containerCpuUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1682,8 +1546,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1695,8 +1557,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1711,8 +1571,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1731,8 +1589,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
id: 'k8s_container_cpu_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuRequestKey,
|
key: k8sContainerCpuRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1747,8 +1603,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1760,8 +1614,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1776,8 +1628,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1796,8 +1646,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_cpu_limit--float64--Gauge--true',
|
id: 'k8s_container_cpu_limit--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuLimitKey,
|
key: k8sContainerCpuLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1812,8 +1660,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1825,8 +1671,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1841,8 +1685,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1907,8 +1749,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'container_memory_usage--float64--Gauge--true',
|
id: 'container_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: containerMemUsageKey,
|
key: containerMemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1923,8 +1763,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1936,8 +1774,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1952,8 +1788,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -1972,8 +1806,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'container_memory_working_set--float64--Gauge--true',
|
id: 'container_memory_working_set--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: containerMemWorkingSetKey,
|
key: containerMemWorkingSetKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -1988,8 +1820,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2001,8 +1831,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2017,8 +1845,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2037,8 +1863,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'container_memory_rss--float64--Gauge--true',
|
id: 'container_memory_rss--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: containerMemRssKey,
|
key: containerMemRssKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -2053,8 +1877,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2066,8 +1888,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2082,8 +1902,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2135,8 +1953,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'container_memory_usage--float64--Gauge--true',
|
id: 'container_memory_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: containerMemUsageKey,
|
key: containerMemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -2151,8 +1967,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2164,8 +1978,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2180,8 +1992,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2200,8 +2010,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_request--float64--Gauge--true',
|
id: 'k8s_container_memory_request--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryRequestKey,
|
key: k8sContainerMemoryRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -2216,8 +2024,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2229,8 +2035,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2245,8 +2049,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2265,8 +2067,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_container_memory_limit--float64--Gauge--true',
|
id: 'k8s_container_memory_limit--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemoryLimitKey,
|
key: k8sContainerMemoryLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -2281,8 +2081,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2294,8 +2092,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2310,8 +2106,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_container_name--string--tag--false',
|
id: 'k8s_container_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerNameKey,
|
key: k8sContainerNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2376,8 +2170,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_io--float64--Sum--true',
|
id: 'k8s_pod_network_io--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkIoKey,
|
key: k8sPodNetworkIoKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -2392,8 +2184,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2405,8 +2195,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2421,16 +2209,12 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2482,8 +2266,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_network_errors--float64--Sum--true',
|
id: 'k8s_pod_network_errors--float64--Sum--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkErrorsKey,
|
key: k8sPodNetworkErrorsKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -2498,8 +2280,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2511,8 +2291,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2527,16 +2305,12 @@ export const getPodMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface--string--tag--false',
|
id: 'interface--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction--string--tag--false',
|
id: 'direction--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2588,8 +2362,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_filesystem_capacity--float64--Gauge--true',
|
id: 'k8s_pod_filesystem_capacity--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodFilesystemCapacityKey,
|
key: k8sPodFilesystemCapacityKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -2604,8 +2376,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2617,8 +2387,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2644,8 +2412,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_filesystem_available--float64--Gauge--true',
|
id: 'k8s_pod_filesystem_available--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodFilesystemAvailableKey,
|
key: k8sPodFilesystemAvailableKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -2660,8 +2426,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2673,8 +2437,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2700,8 +2462,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_pod_filesystem_usage--float64--Gauge--true',
|
id: 'k8s_pod_filesystem_usage--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodFilesystemUsageKey,
|
key: k8sPodFilesystemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -2716,8 +2476,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -2729,8 +2487,6 @@ export const getPodMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_pod_name--string--tag--false',
|
id: 'k8s_pod_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -121,8 +121,6 @@ function StatefulSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_STATEFUL_SET_NAME,
|
key: QUERY_KEYS.K8S_STATEFUL_SET_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_statefulset_name--string--resource--false',
|
id: 'k8s_statefulset_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -134,8 +132,6 @@ function StatefulSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
key: QUERY_KEYS.K8S_NAMESPACE_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s_namespace_name--string--resource--false',
|
id: 'k8s_namespace_name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -166,8 +162,6 @@ function StatefulSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
key: QUERY_KEYS.K8S_OBJECT_KIND,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.kind--string--resource--false',
|
id: 'k8s.object.kind--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@@ -179,8 +173,6 @@ function StatefulSetDetails({
|
|||||||
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
key: QUERY_KEYS.K8S_OBJECT_NAME,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'k8s.object.name--string--resource--false',
|
id: 'k8s.object.name--string--resource--false',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
|
|||||||
@@ -98,8 +98,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'cpu_usage',
|
id: 'cpu_usage',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuUtilKey,
|
key: k8sPodCpuUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -114,8 +112,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -127,8 +123,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -154,8 +148,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'cpu_request',
|
id: 'cpu_request',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuRequestKey,
|
key: k8sContainerCpuRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -170,8 +162,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'pod_name',
|
id: 'pod_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -183,8 +173,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -210,8 +198,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'cpu_limit',
|
id: 'cpu_limit',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerCpuLimitKey,
|
key: k8sContainerCpuLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -226,8 +212,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'pod_name',
|
id: 'pod_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -239,8 +223,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -285,8 +267,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'cpu_req_util',
|
id: 'cpu_req_util',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuReqUtilKey,
|
key: k8sPodCpuReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -301,8 +281,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -314,8 +292,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -341,8 +317,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'cpu_limit_util',
|
id: 'cpu_limit_util',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodCpuLimitUtilKey,
|
key: k8sPodCpuLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -357,8 +331,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -370,8 +342,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -416,8 +386,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'mem_usage',
|
id: 'mem_usage',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemUsageKey,
|
key: k8sPodMemUsageKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -432,8 +400,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -445,8 +411,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -472,8 +436,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'mem_request',
|
id: 'mem_request',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemRequestKey,
|
key: k8sContainerMemRequestKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -488,8 +450,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'pod_name',
|
id: 'pod_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -501,8 +461,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -528,8 +486,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'mem_limit',
|
id: 'mem_limit',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sContainerMemLimitKey,
|
key: k8sContainerMemLimitKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -544,8 +500,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'pod_name',
|
id: 'pod_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNameKey,
|
key: k8sPodNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -557,8 +511,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -603,8 +555,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'mem_req_util',
|
id: 'mem_req_util',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemReqUtilKey,
|
key: k8sPodMemReqUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -619,8 +569,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -632,8 +580,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -659,8 +605,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'mem_limit_util',
|
id: 'mem_limit_util',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodMemLimitUtilKey,
|
key: k8sPodMemLimitUtilKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -675,8 +619,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -688,8 +630,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -734,8 +674,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'net_io',
|
id: 'net_io',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkIoKey,
|
key: k8sPodNetworkIoKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -750,8 +688,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -763,8 +699,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -779,16 +713,12 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction',
|
id: 'direction',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface',
|
id: 'interface',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -826,8 +756,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'net_err',
|
id: 'net_err',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sPodNetworkErrorsKey,
|
key: k8sPodNetworkErrorsKey,
|
||||||
type: 'Sum',
|
type: 'Sum',
|
||||||
},
|
},
|
||||||
@@ -842,8 +770,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ss_name',
|
id: 'ss_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sStatefulSetNameKey,
|
key: k8sStatefulSetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -855,8 +781,6 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'ns_name',
|
id: 'ns_name',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -871,16 +795,12 @@ export const getStatefulSetMetricsQueryPayload = (
|
|||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'direction',
|
id: 'direction',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'direction',
|
key: 'direction',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'interface',
|
id: 'interface',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: 'interface',
|
key: 'interface',
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,8 +78,6 @@ export const getVolumeQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_volume_available--float64--Gauge--true',
|
id: 'k8s_volume_available--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sVolumeAvailableKey,
|
key: k8sVolumeAvailableKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -94,7 +92,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -106,7 +103,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -118,7 +114,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_volume_type--string--tag--false',
|
id: 'k8s_volume_type--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sVolumeTypeKey,
|
key: k8sVolumeTypeKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -130,7 +125,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sPVCNameKey,
|
key: k8sPVCNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -175,8 +169,6 @@ export const getVolumeQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_volume_capacity--float64--Gauge--true',
|
id: 'k8s_volume_capacity--float64--Gauge--true',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sVolumeCapacityKey,
|
key: k8sVolumeCapacityKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
@@ -191,7 +183,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -203,7 +194,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -215,7 +205,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_volume_type--string--tag--false',
|
id: 'k8s_volume_type--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sVolumeTypeKey,
|
key: k8sVolumeTypeKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -227,7 +216,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sPVCNameKey,
|
key: k8sPVCNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -272,7 +260,6 @@ export const getVolumeQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_volume_inodes_used--float64----true',
|
id: 'k8s_volume_inodes_used--float64----true',
|
||||||
isColumn: true,
|
|
||||||
key: k8sVolumeInodesUsedKey,
|
key: k8sVolumeInodesUsedKey,
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -287,7 +274,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -299,7 +285,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -311,7 +296,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_volume_type--string--tag--false',
|
id: 'k8s_volume_type--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sVolumeTypeKey,
|
key: k8sVolumeTypeKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -323,7 +307,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sPVCNameKey,
|
key: k8sPVCNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -368,7 +351,6 @@ export const getVolumeQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_volume_inodes--float64----true',
|
id: 'k8s_volume_inodes--float64----true',
|
||||||
isColumn: true,
|
|
||||||
key: k8sVolumeInodesKey,
|
key: k8sVolumeInodesKey,
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -383,7 +365,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -395,7 +376,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -407,7 +387,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_volume_type--string--tag--false',
|
id: 'k8s_volume_type--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sVolumeTypeKey,
|
key: k8sVolumeTypeKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -419,7 +398,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sPVCNameKey,
|
key: k8sPVCNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -464,7 +442,6 @@ export const getVolumeQueryPayload = (
|
|||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
dataType: DataTypes.Float64,
|
dataType: DataTypes.Float64,
|
||||||
id: 'k8s_volume_inodes_free--float64----true',
|
id: 'k8s_volume_inodes_free--float64----true',
|
||||||
isColumn: true,
|
|
||||||
key: k8sVolumeInodesFreeKey,
|
key: k8sVolumeInodesFreeKey,
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
@@ -479,7 +456,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sClusterNameKey,
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -491,7 +467,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
id: 'k8s_namespace_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
key: k8sNamespaceNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -503,7 +478,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_volume_type--string--tag--false',
|
id: 'k8s_volume_type--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sVolumeTypeKey,
|
key: k8sVolumeTypeKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
@@ -515,7 +489,6 @@ export const getVolumeQueryPayload = (
|
|||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
id: 'k8s_persistentvolumeclaim_name--string--tag--false',
|
||||||
isColumn: false,
|
|
||||||
key: k8sPVCNameKey,
|
key: k8sPVCNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -107,8 +107,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: podKey,
|
key: podKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${podKey}--string--tag--true`,
|
id: `${podKey}--string--tag--true`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -123,8 +121,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: namespaceKey,
|
key: namespaceKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${namespaceKey}--string--resource--false`,
|
id: `${namespaceKey}--string--resource--false`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -139,8 +135,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: nodeKey,
|
key: nodeKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${nodeKey}--string--resource--false`,
|
id: `${nodeKey}--string--resource--false`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -155,8 +149,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${clusterKey}--string--resource--false`,
|
id: `${clusterKey}--string--resource--false`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -171,8 +163,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: deploymentKey,
|
key: deploymentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${deploymentKey}--string--resource--false`,
|
id: `${deploymentKey}--string--resource--false`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -187,8 +177,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: statefulsetKey,
|
key: statefulsetKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${statefulsetKey}--string--resource--false`,
|
id: `${statefulsetKey}--string--resource--false`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -203,8 +191,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: daemonsetKey,
|
key: daemonsetKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${daemonsetKey}--string--resource--false`,
|
id: `${daemonsetKey}--string--resource--false`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -219,8 +205,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: jobKey,
|
key: jobKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${jobKey}--string--resource--false`,
|
id: `${jobKey}--string--resource--false`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -235,8 +219,6 @@ export function GetPodsQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -266,8 +248,6 @@ export function GetNodesQuickFiltersConfig(
|
|||||||
key: nodeKey,
|
key: nodeKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${nodeKey}--string--resource--true`,
|
id: `${nodeKey}--string--resource--true`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -282,8 +262,6 @@ export function GetNodesQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${clusterKey}--string--resource--true`,
|
id: `${clusterKey}--string--resource--true`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -298,8 +276,6 @@ export function GetNodesQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -328,8 +304,6 @@ export function GetNamespaceQuickFiltersConfig(
|
|||||||
key: namespaceKey,
|
key: namespaceKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${namespaceKey}--string--resource`,
|
id: `${namespaceKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -344,8 +318,6 @@ export function GetNamespaceQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${clusterKey}--string--resource`,
|
id: `${clusterKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -360,8 +332,6 @@ export function GetNamespaceQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -387,8 +357,6 @@ export function GetClustersQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${clusterKey}--string--resource`,
|
id: `${clusterKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -403,8 +371,6 @@ export function GetClustersQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -429,8 +395,6 @@ export function GetContainersQuickFiltersConfig(
|
|||||||
key: containerKey,
|
key: containerKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${containerKey}--string--resource`,
|
id: `${containerKey}--string--resource`,
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
@@ -442,8 +406,6 @@ export function GetContainersQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -475,8 +437,6 @@ export function GetVolumesQuickFiltersConfig(
|
|||||||
key: pvcKey,
|
key: pvcKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${pvcKey}--string--resource`,
|
id: `${pvcKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -491,8 +451,6 @@ export function GetVolumesQuickFiltersConfig(
|
|||||||
key: namespaceKey,
|
key: namespaceKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${namespaceKey}--string--resource`,
|
id: `${namespaceKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -507,8 +465,6 @@ export function GetVolumesQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${clusterKey}--string--resource`,
|
id: `${clusterKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -523,8 +479,6 @@ export function GetVolumesQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -554,8 +508,6 @@ export function GetDeploymentsQuickFiltersConfig(
|
|||||||
key: deployKey,
|
key: deployKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${deployKey}--string--resource`,
|
id: `${deployKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -570,8 +522,6 @@ export function GetDeploymentsQuickFiltersConfig(
|
|||||||
key: namespaceKey,
|
key: namespaceKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${namespaceKey}--string--resource`,
|
id: `${namespaceKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -586,8 +536,6 @@ export function GetDeploymentsQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${clusterKey}--string--resource`,
|
id: `${clusterKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -602,8 +550,6 @@ export function GetDeploymentsQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -633,8 +579,6 @@ export function GetStatefulsetsQuickFiltersConfig(
|
|||||||
key: ssKey,
|
key: ssKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${ssKey}--string--resource`,
|
id: `${ssKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -649,8 +593,6 @@ export function GetStatefulsetsQuickFiltersConfig(
|
|||||||
key: namespaceKey,
|
key: namespaceKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${namespaceKey}--string--resource`,
|
id: `${namespaceKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -665,8 +607,6 @@ export function GetStatefulsetsQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${clusterKey}--string--resource`,
|
id: `${clusterKey}--string--resource`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -681,8 +621,6 @@ export function GetStatefulsetsQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -714,8 +652,6 @@ export function GetDaemonsetsQuickFiltersConfig(
|
|||||||
key: nameKey,
|
key: nameKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${nameKey}--string--resource--true`,
|
id: `${nameKey}--string--resource--true`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -730,8 +666,6 @@ export function GetDaemonsetsQuickFiltersConfig(
|
|||||||
key: namespaceKey,
|
key: namespaceKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: metricName,
|
aggregateAttribute: metricName,
|
||||||
@@ -745,8 +679,6 @@ export function GetDaemonsetsQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: metricName,
|
aggregateAttribute: metricName,
|
||||||
@@ -760,8 +692,6 @@ export function GetDaemonsetsQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
@@ -791,8 +721,6 @@ export function GetJobsQuickFiltersConfig(
|
|||||||
key: nameKey,
|
key: nameKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
id: `${nameKey}--string--resource--true`,
|
id: `${nameKey}--string--resource--true`,
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
@@ -807,8 +735,6 @@ export function GetJobsQuickFiltersConfig(
|
|||||||
key: namespaceKey,
|
key: namespaceKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: metricName,
|
aggregateAttribute: metricName,
|
||||||
@@ -822,8 +748,6 @@ export function GetJobsQuickFiltersConfig(
|
|||||||
key: clusterKey,
|
key: clusterKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
aggregateOperator: 'noop',
|
aggregateOperator: 'noop',
|
||||||
aggregateAttribute: metricName,
|
aggregateAttribute: metricName,
|
||||||
@@ -837,8 +761,6 @@ export function GetJobsQuickFiltersConfig(
|
|||||||
key: environmentKey,
|
key: environmentKey,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
},
|
},
|
||||||
defaultOpen: true,
|
defaultOpen: true,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -272,12 +272,11 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {
|
|||||||
width: 80,
|
width: 80,
|
||||||
key: 'severity',
|
key: 'severity',
|
||||||
sorter: (a, b): number =>
|
sorter: (a, b): number =>
|
||||||
(a.labels ? a.labels.severity.length : 0) -
|
(a?.labels?.severity?.length || 0) - (b?.labels?.severity?.length || 0),
|
||||||
(b.labels ? b.labels.severity.length : 0),
|
|
||||||
render: (value): JSX.Element => {
|
render: (value): JSX.Element => {
|
||||||
const objectKeys = Object.keys(value);
|
const objectKeys = value ? Object.keys(value) : [];
|
||||||
const withSeverityKey = objectKeys.find((e) => e === 'severity') || '';
|
const withSeverityKey = objectKeys.find((e) => e === 'severity') || '';
|
||||||
const severityValue = value[withSeverityKey];
|
const severityValue = withSeverityKey ? value[withSeverityKey] : '-';
|
||||||
|
|
||||||
return <Typography>{severityValue}</Typography>;
|
return <Typography>{severityValue}</Typography>;
|
||||||
},
|
},
|
||||||
@@ -290,7 +289,7 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 100,
|
width: 100,
|
||||||
render: (value): JSX.Element => {
|
render: (value): JSX.Element => {
|
||||||
const objectKeys = Object.keys(value);
|
const objectKeys = value ? Object.keys(value) : [];
|
||||||
const withOutSeverityKeys = objectKeys.filter((e) => e !== 'severity');
|
const withOutSeverityKeys = objectKeys.filter((e) => e !== 'severity');
|
||||||
|
|
||||||
if (withOutSeverityKeys.length === 0) {
|
if (withOutSeverityKeys.length === 0) {
|
||||||
|
|||||||
@@ -613,7 +613,7 @@ function DashboardsList(): JSX.Element {
|
|||||||
{
|
{
|
||||||
label: (
|
label: (
|
||||||
<a
|
<a
|
||||||
href="https://github.com/SigNoz/dashboards"
|
href="https://signoz.io/docs/dashboards/dashboard-templates/overview/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ function ImportJSON({
|
|||||||
</Button>
|
</Button>
|
||||||
</Upload>
|
</Upload>
|
||||||
<a
|
<a
|
||||||
href="https://github.com/SigNoz/dashboards"
|
href="https://signoz.io/docs/dashboards/dashboard-templates/overview/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export function RequestDashboardBtn(): JSX.Element {
|
|||||||
<div className="request-entity-container">
|
<div className="request-entity-container">
|
||||||
<Typography.Text>
|
<Typography.Text>
|
||||||
<a
|
<a
|
||||||
href="https://github.com/SigNoz/dashboards"
|
href="https://signoz.io/docs/dashboards/dashboard-templates/overview/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -49,5 +49,4 @@ export const idObject: BaseAutocompleteData = {
|
|||||||
key: 'id',
|
key: 'id',
|
||||||
type: '',
|
type: '',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ export interface ActionItemProps {
|
|||||||
fieldKey: string,
|
fieldKey: string,
|
||||||
fieldValue: string,
|
fieldValue: string,
|
||||||
operator: string,
|
operator: string,
|
||||||
isJSON?: boolean,
|
|
||||||
dataType?: DataTypes,
|
dataType?: DataTypes,
|
||||||
fieldType?: string,
|
fieldType?: string,
|
||||||
) => void;
|
) => void;
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ function BodyTitleRenderer({
|
|||||||
isFilterIn
|
isFilterIn
|
||||||
? QUERY_BUILDER_FUNCTIONS.HAS
|
? QUERY_BUILDER_FUNCTIONS.HAS
|
||||||
: negateOperator(QUERY_BUILDER_FUNCTIONS.HAS),
|
: negateOperator(QUERY_BUILDER_FUNCTIONS.HAS),
|
||||||
true,
|
|
||||||
parentIsArray ? getDataTypes([value]) : getDataTypes(value),
|
parentIsArray ? getDataTypes([value]) : getDataTypes(value),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -44,7 +43,6 @@ function BodyTitleRenderer({
|
|||||||
`body.${removeObjectFromString(nodeKey)}`,
|
`body.${removeObjectFromString(nodeKey)}`,
|
||||||
`${value}`,
|
`${value}`,
|
||||||
isFilterIn ? OPERATORS['='] : OPERATORS['!='],
|
isFilterIn ? OPERATORS['='] : OPERATORS['!='],
|
||||||
true,
|
|
||||||
getDataTypes(value),
|
getDataTypes(value),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ export const mockQuery: Query = {
|
|||||||
key: 'body',
|
key: 'body',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
timeAggregation: 'sum',
|
timeAggregation: 'sum',
|
||||||
functions: [],
|
functions: [],
|
||||||
@@ -69,7 +68,6 @@ const mockBaseAutocompleteData: BaseAutocompleteData = {
|
|||||||
key: 'service',
|
key: 'service',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const mockTagFilter: TagFilter = {
|
export const mockTagFilter: TagFilter = {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -29,11 +29,7 @@ interface OverviewProps {
|
|||||||
isListViewPanel?: boolean;
|
isListViewPanel?: boolean;
|
||||||
selectedOptions: OptionsQuery;
|
selectedOptions: OptionsQuery;
|
||||||
listViewPanelSelectedFields?: IField[] | null;
|
listViewPanelSelectedFields?: IField[] | null;
|
||||||
onGroupByAttribute?: (
|
onGroupByAttribute?: (fieldKey: string, dataType?: DataTypes) => Promise<void>;
|
||||||
fieldKey: string,
|
|
||||||
isJSON?: boolean,
|
|
||||||
dataType?: DataTypes,
|
|
||||||
) => Promise<void>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Props = OverviewProps &
|
type Props = OverviewProps &
|
||||||
|
|||||||
@@ -47,11 +47,7 @@ interface TableViewProps {
|
|||||||
selectedOptions: OptionsQuery;
|
selectedOptions: OptionsQuery;
|
||||||
isListViewPanel?: boolean;
|
isListViewPanel?: boolean;
|
||||||
listViewPanelSelectedFields?: IField[] | null;
|
listViewPanelSelectedFields?: IField[] | null;
|
||||||
onGroupByAttribute?: (
|
onGroupByAttribute?: (fieldKey: string, dataType?: DataTypes) => Promise<void>;
|
||||||
fieldKey: string,
|
|
||||||
isJSON?: boolean,
|
|
||||||
dataType?: DataTypes,
|
|
||||||
) => Promise<void>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Props = TableViewProps &
|
type Props = TableViewProps &
|
||||||
@@ -123,7 +119,6 @@ function TableView({
|
|||||||
fieldKey,
|
fieldKey,
|
||||||
validatedFieldValue,
|
validatedFieldValue,
|
||||||
operator,
|
operator,
|
||||||
undefined,
|
|
||||||
dataType as DataTypes,
|
dataType as DataTypes,
|
||||||
fieldType,
|
fieldType,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -33,11 +33,7 @@ interface ITableViewActionsProps {
|
|||||||
isListViewPanel: boolean;
|
isListViewPanel: boolean;
|
||||||
isfilterInLoading: boolean;
|
isfilterInLoading: boolean;
|
||||||
isfilterOutLoading: boolean;
|
isfilterOutLoading: boolean;
|
||||||
onGroupByAttribute?: (
|
onGroupByAttribute?: (fieldKey: string, dataType?: DataTypes) => Promise<void>;
|
||||||
fieldKey: string,
|
|
||||||
isJSON?: boolean,
|
|
||||||
dataType?: DataTypes,
|
|
||||||
) => Promise<void>;
|
|
||||||
onClickHandler: (
|
onClickHandler: (
|
||||||
operator: string,
|
operator: string,
|
||||||
fieldKey: string,
|
fieldKey: string,
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ export const getFiltersFromResources = (
|
|||||||
key,
|
key,
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: 'resource',
|
type: 'resource',
|
||||||
isColumn: false,
|
|
||||||
},
|
},
|
||||||
op: OPERATORS['='],
|
op: OPERATORS['='],
|
||||||
value: resourceValue,
|
value: resourceValue,
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ describe('LogsExplorerList - empty states', () => {
|
|||||||
key: 'trace_id',
|
key: 'trace_id',
|
||||||
type: '',
|
type: '',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'test-trace-id',
|
value: 'test-trace-id',
|
||||||
@@ -184,7 +183,6 @@ describe('LogsExplorerList - empty states', () => {
|
|||||||
key: 'service.name',
|
key: 'service.name',
|
||||||
type: '',
|
type: '',
|
||||||
dataType: 'string',
|
dataType: 'string',
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
value: 'test-service-name',
|
value: 'test-service-name',
|
||||||
|
|||||||
@@ -197,8 +197,6 @@ function LogsExplorerViewsContainer({
|
|||||||
key: 'severity_text',
|
key: 'severity_text',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
type: '',
|
type: '',
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
id: 'severity_text--string----true',
|
id: 'severity_text--string----true',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -214,7 +212,6 @@ function LogsExplorerViewsContainer({
|
|||||||
key: 'id',
|
key: 'id',
|
||||||
type: '',
|
type: '',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
op: OPERATORS['<='],
|
op: OPERATORS['<='],
|
||||||
value: activeLogId,
|
value: activeLogId,
|
||||||
@@ -329,7 +326,6 @@ function LogsExplorerViewsContainer({
|
|||||||
key: 'id',
|
key: 'id',
|
||||||
type: '',
|
type: '',
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
isColumn: true,
|
|
||||||
},
|
},
|
||||||
op: OPERATORS['<='],
|
op: OPERATORS['<='],
|
||||||
value: activeLogId,
|
value: activeLogId,
|
||||||
@@ -482,8 +478,7 @@ function LogsExplorerViewsContainer({
|
|||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const shouldChangeView =
|
const shouldChangeView = isMultipleQueries || isGroupByExist;
|
||||||
(isMultipleQueries || isGroupByExist) && selectedView !== ExplorerViews.LIST;
|
|
||||||
|
|
||||||
if (selectedPanelType === PANEL_TYPES.LIST && shouldChangeView) {
|
if (selectedPanelType === PANEL_TYPES.LIST && shouldChangeView) {
|
||||||
handleExplorerTabChange(PANEL_TYPES.TIME_SERIES);
|
handleExplorerTabChange(PANEL_TYPES.TIME_SERIES);
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user