fix advisor. refresh
This commit is contained in:
@@ -273,6 +273,7 @@ async function refresh() {
|
|||||||
const baseline = data.baseline || {};
|
const baseline = data.baseline || {};
|
||||||
const threat = (data.capabilities || {}).threat_intel || {};
|
const threat = (data.capabilities || {}).threat_intel || {};
|
||||||
const mcp = (data.capabilities || {}).graylog_mcp || {};
|
const mcp = (data.capabilities || {}).graylog_mcp || {};
|
||||||
|
const advisor = ((data.capabilities || {}).profile_advisor || {});
|
||||||
const configuration = data.configuration || {};
|
const configuration = data.configuration || {};
|
||||||
const cache = data.status_cache || {};
|
const cache = data.status_cache || {};
|
||||||
const streamCoverage = data.stream_coverage || [];
|
const streamCoverage = data.stream_coverage || [];
|
||||||
@@ -323,7 +324,6 @@ async function refresh() {
|
|||||||
metric('Enabled streams', enabledStreams.length), metric('Streams missing profile', streamsMissingProfile), metric('MCP aggregate events', mcp.aggregate_events || 0), metric('MCP raw sample', mcp.raw_events_fetched || mcp.events_fetched || 0), metric('Partial streams', mcp.partial_streams || 0), metric('Sample capped', mcp.sample_limited_streams || 0), metric('Truncated streams', mcp.truncated_streams || 0), metric('Correlated entities', correlations.length)
|
metric('Enabled streams', enabledStreams.length), metric('Streams missing profile', streamsMissingProfile), metric('MCP aggregate events', mcp.aggregate_events || 0), metric('MCP raw sample', mcp.raw_events_fetched || mcp.events_fetched || 0), metric('Partial streams', mcp.partial_streams || 0), metric('Sample capped', mcp.sample_limited_streams || 0), metric('Truncated streams', mcp.truncated_streams || 0), metric('Correlated entities', correlations.length)
|
||||||
].join('');
|
].join('');
|
||||||
window.profileSuggestions = data.profile_suggestions || [];
|
window.profileSuggestions = data.profile_suggestions || [];
|
||||||
const advisor = ((data.capabilities || {}).profile_advisor || {});
|
|
||||||
const showExistingProfiles = document.getElementById('showExistingProfiles')?.checked;
|
const showExistingProfiles = document.getElementById('showExistingProfiles')?.checked;
|
||||||
const pendingProfileSuggestions = window.profileSuggestions.filter(item => !item.profile_exists);
|
const pendingProfileSuggestions = window.profileSuggestions.filter(item => !item.profile_exists);
|
||||||
const visibleProfileSuggestions = showExistingProfiles ? window.profileSuggestions : pendingProfileSuggestions;
|
const visibleProfileSuggestions = showExistingProfiles ? window.profileSuggestions : pendingProfileSuggestions;
|
||||||
|
|||||||
Reference in New Issue
Block a user