fix advisor. refresh
This commit is contained in:
@@ -273,6 +273,7 @@ async function refresh() {
|
||||
const baseline = data.baseline || {};
|
||||
const threat = (data.capabilities || {}).threat_intel || {};
|
||||
const mcp = (data.capabilities || {}).graylog_mcp || {};
|
||||
const advisor = ((data.capabilities || {}).profile_advisor || {});
|
||||
const configuration = data.configuration || {};
|
||||
const cache = data.status_cache || {};
|
||||
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)
|
||||
].join('');
|
||||
window.profileSuggestions = data.profile_suggestions || [];
|
||||
const advisor = ((data.capabilities || {}).profile_advisor || {});
|
||||
const showExistingProfiles = document.getElementById('showExistingProfiles')?.checked;
|
||||
const pendingProfileSuggestions = window.profileSuggestions.filter(item => !item.profile_exists);
|
||||
const visibleProfileSuggestions = showExistingProfiles ? window.profileSuggestions : pendingProfileSuggestions;
|
||||
|
||||
Reference in New Issue
Block a user