Skip to content

Commit

Permalink
Remove old aws agent dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Mar 11, 2024
1 parent 64b4760 commit 357bae1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 694 deletions.
53 changes: 0 additions & 53 deletions plugins/main/public/components/visualize/agent-visualizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,59 +46,6 @@ export const agentVisualizations = {
},
],
},
aws: {
rows: [
{
height: 250,
vis: [
{
title: 'Sources',
id: 'Wazuh-App-Agents-AWS-Top-sources',
width: 25,
},
{
title: 'Accounts',
id: 'Wazuh-App-Agents-AWS-Top-accounts',
width: 25,
},
{
title: 'S3 buckets',
id: 'Wazuh-App-Agents-AWS-Top-buckets',
width: 25,
},
{
title: 'Regions',
id: 'Wazuh-App-Agents-AWS-Top-regions',
width: 25,
},
],
},
{
height: 300,
vis: [
{
title: 'Events by source over time',
id: 'Wazuh-App-Agents-AWS-Events-by-source',
width: 50,
},
{
title: 'Events by S3 bucket over time',
id: 'Wazuh-App-Agents-AWS-Events-by-s3-bucket',
width: 50,
},
],
},
{
height: 570,
vis: [
{
title: 'Geolocation map',
id: 'Wazuh-App-Agents-AWS-geo',
},
],
},
],
},
fim: {
rows: [
{
Expand Down
7 changes: 3 additions & 4 deletions plugins/main/public/controllers/overview/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class OverviewController {

this.currentOverviewSectionProps = {
switchTab: (tab, force) => this.switchTab(tab, force),
currentTab: this.tab
currentTab: this.tab,
};
}

Expand All @@ -95,7 +95,6 @@ export class OverviewController {

this.wzMonitoringEnabled = false;


this.init();

this.$scope.getMainProps = resultState => {
Expand Down Expand Up @@ -177,7 +176,7 @@ export class OverviewController {
: this.isAgent && agentList.length > 1
? ` of ${agentList.length.toString()} agents`
: false;
if (agentList && agentList.length) {
if (agentList && agentList.length && this.tab !== 'aws') {
await this.visFactoryService.buildAgentsVisualizations(
this.filterHandler,
this.tab,
Expand All @@ -186,7 +185,7 @@ export class OverviewController {
this.tabView === 'discover' || this.oldFilteredTab === this.tab,
);
this.oldFilteredTab = this.tab;
} else if (!agentList && this.tab !== 'welcome') {
} else if (!agentList && this.tab !== 'welcome' && this.tab !== 'aws') {
if (!store.getState().appStateReducers.currentAgentData.id) {
await this.visFactoryService.buildOverviewVisualizations(
this.filterHandler,
Expand Down
Loading

0 comments on commit 357bae1

Please sign in to comment.