Skip to content

Commit

Permalink
refac: supported daemon statistics list
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebits committed Jun 25, 2024
1 parent be0afc8 commit 9430c86
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
supported_targets = ['binary', 'analysis', 'remote', 'wazuhdb', 'logcollector',
'cluster', 'indexer-alerts',
'indexer-vulnerabilities']
daemon_supported_statistics = ['analysis', 'remote', 'wazuhdb']
strategy_plot_by_target = {
'binary': BinaryDatavisualizer,
'daemon-statistics': DaemonStatisticsVisualizer,
Expand Down Expand Up @@ -69,7 +70,7 @@ def main():
}

strategy = target
if target in ['analysis', 'remote', 'wazuhdb']:
if target in daemon_supported_statistics:
visualization_options['daemon'] = target
strategy = 'daemon-statistics'
elif target == 'binary':
Expand Down

0 comments on commit 9430c86

Please sign in to comment.