wazuh-kibana-app/public/utils/overview-metrics.js

89 lines
3.0 KiB
JavaScript
Raw Normal View History

2018-06-12 11:37:20 +00:00
/*
* Wazuh app - Hardcoded overview metrics
* Copyright (C) 2018 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Find more information about this on the LICENSE file.
*/
// Metrics General
const metricsGeneral = {
2018-09-10 08:32:49 +00:00
totalAlerts: '[vis-id="\'Wazuh-App-Overview-General-Metric-alerts\'"]',
level12: '[vis-id="\'Wazuh-App-Overview-General-Level-12-alerts\'"]',
authFailure:
'[vis-id="\'Wazuh-App-Overview-General-Authentication-failure\'"]',
authSuccess:
'[vis-id="\'Wazuh-App-Overview-General-Authentication-success\'"]'
};
2018-06-12 11:37:20 +00:00
// Metrics Audit
const metricsAudit = {
2018-09-10 08:32:49 +00:00
auditNewFiles: '[vis-id="\'Wazuh-App-Overview-Audit-New-files\'"]',
auditReadFiles: '[vis-id="\'Wazuh-App-Overview-Audit-Read-files\'"]',
auditModifiedFiles: '[vis-id="\'Wazuh-App-Overview-Audit-Modified-files\'"]',
auditRemovedFiles: '[vis-id="\'Wazuh-App-Overview-Audit-Removed-files\'"]'
};
2018-06-12 11:37:20 +00:00
// Metrics Vulnerability Detector
const metricsVulnerability = {
2018-09-10 08:32:49 +00:00
vulnCritical:
'[vis-id="\'Wazuh-App-Overview-vulnerability-Metric-Critical-severity\'"]',
vulnHigh:
'[vis-id="\'Wazuh-App-Overview-vulnerability-Metric-High-severity\'"]',
vulnMedium:
'[vis-id="\'Wazuh-App-Overview-vulnerability-Metric-Medium-severity\'"]',
vulnLow: '[vis-id="\'Wazuh-App-Overview-vulnerability-Metric-Low-severity\'"]'
2018-09-10 08:32:49 +00:00
};
2018-06-12 11:37:20 +00:00
// Metrics Scap
const metricsScap = {
2018-09-10 08:32:49 +00:00
scapLastScore: '[vis-id="\'Wazuh-App-Overview-OSCAP-Last-score\'"]',
scapHighestScore: '[vis-id="\'Wazuh-App-Overview-OSCAP-Highest-score\'"]',
scapLowestScore: '[vis-id="\'Wazuh-App-Overview-OSCAP-Lowest-score\'"]'
};
2018-06-12 11:37:20 +00:00
2018-06-19 14:40:03 +00:00
// Metrics CIS-CAT
const metricsCiscat = {
2018-09-10 08:32:49 +00:00
ciscatScanNotChecked:
'[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-not-checked\'"]',
ciscatScanScore: '[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-score\'"]',
ciscatScanPass: '[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-pass\'"]',
ciscatScanFail: '[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-fail\'"]',
ciscatScanTimestamp:
'[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-timestamp\'"]',
ciscatScanError: '[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-error\'"]',
ciscatScanBenchmark:
'[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-benchmark\'"]',
ciscatScanUnknown:
'[vis-id="\'Wazuh-app-Overview-CISCAT-last-scan-unknown\'"]'
};
2018-06-19 14:40:03 +00:00
2018-06-12 11:37:20 +00:00
// Metrics Virustotal
const metricsVirustotal = {
2018-09-10 08:32:49 +00:00
virusMalicious:
'[vis-id="\'Wazuh-App-Overview-Virustotal-Total-Malicious\'"]',
virusPositives:
'[vis-id="\'Wazuh-App-Overview-Virustotal-Total-Positives\'"]',
virusTotal: '[vis-id="\'Wazuh-App-Overview-Virustotal-Total\'"]'
};
2018-06-12 11:37:20 +00:00
2018-09-29 10:36:26 +00:00
// Metrics OSQuery
const metricsOsquery = {
osqueryAgentsReporting:
'[vis-id="\'Wazuh-App-Overview-Osquery-Agents-reporting\'"]'
};
2018-06-12 11:37:20 +00:00
2018-09-10 08:32:49 +00:00
export default {
2018-09-18 10:42:46 +00:00
metricsGeneral,
2018-09-10 08:32:49 +00:00
metricsAudit,
metricsVulnerability,
metricsScap,
metricsCiscat,
2018-09-29 10:36:26 +00:00
metricsVirustotal,
metricsOsquery
2018-09-10 08:32:49 +00:00
};