Skip to content

Commit

Permalink
chore: refactor logs
Browse files Browse the repository at this point in the history
  • Loading branch information
amlannandy committed Jan 18, 2025
1 parent b525e14 commit c64dff0
Show file tree
Hide file tree
Showing 21 changed files with 58 additions and 1,318 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ import { GlobalReducer } from 'types/reducer/globalTime';
import { v4 as uuidv4 } from 'uuid';

import ClusterEvents from '../../EntityDetailsUtils/EntityEvents';
import ClusterLogs from '../../EntityDetailsUtils/EntityLogs';
import ClusterMetrics from '../../EntityDetailsUtils/EntityMetrics';
import ClusterTraces from '../../EntityDetailsUtils/EntityTraces';
import { ClusterDetailsProps } from './ClusterDetails.interfaces';
import { clusterWidgetInfo, getClusterMetricsQueryPayload } from './constants';
import ClusterLogs from './Logs';

function ClusterDetails({
cluster,
Expand Down Expand Up @@ -514,6 +514,9 @@ function ClusterDetails({
handleChangeLogFilters={handleChangeLogFilters}
logFilters={logFilters}
selectedInterval={selectedInterval}
queryKey="clusterLogs"
category={K8sCategory.CLUSTERS}
queryKeyFilters={[QUERY_KEYS.K8S_CLUSTER_NAME]}
/>
)}
{selectedView === VIEW_TYPES.TRACES && (
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ import { GlobalReducer } from 'types/reducer/globalTime';
import { v4 as uuidv4 } from 'uuid';

import DeploymentEvents from '../../EntityDetailsUtils/EntityEvents';
import DeploymentLogs from '../../EntityDetailsUtils/EntityLogs';
import DeploymentMetrics from '../../EntityDetailsUtils/EntityMetrics';
import DeploymentTraces from '../../EntityDetailsUtils/EntityTraces';
import {
deploymentWidgetInfo,
getDeploymentMetricsQueryPayload,
} from './constants';
import { DeploymentDetailsProps } from './DeploymentDetails.interfaces';
import DeploymentLogs from './Logs';

function DeploymentDetails({
deployment,
Expand Down Expand Up @@ -557,6 +557,12 @@ function DeploymentDetails({
handleChangeLogFilters={handleChangeLogFilters}
logFilters={logFilters}
selectedInterval={selectedInterval}
queryKeyFilters={[
QUERY_KEYS.K8S_DEPLOYMENT_NAME,
QUERY_KEYS.K8S_NAMESPACE_NAME,
]}
queryKey="deploymentLogs"
category={K8sCategory.DEPLOYMENTS}
/>
)}
{selectedView === VIEW_TYPES.TRACES && (
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit c64dff0

Please sign in to comment.