Skip to content

Commit

Permalink
change host.status to agent.status
Browse files Browse the repository at this point in the history
  • Loading branch information
parkiino committed Jun 22, 2021
1 parent c542baf commit 9c3d27f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const fields = [
{ id: 'signal.rule.severity', label: ALERTS_HEADERS_SEVERITY },
{ id: 'signal.rule.risk_score', label: ALERTS_HEADERS_RISK_SCORE },
{ id: 'host.name' },
{ id: 'host.status' },
{ id: 'agent.status' },
{ id: 'user.name' },
{ id: SOURCE_IP_FIELD_NAME, fieldType: IP_FIELD_TYPE },
{ id: DESTINATION_IP_FIELD_NAME, fieldType: IP_FIELD_TYPE },
Expand Down Expand Up @@ -180,7 +180,7 @@ const AlertSummaryViewComponent: React.FC<{
]);

const isEndpointAlert = useMemo(() => {
endpointAlertCheck({ data });
return endpointAlertCheck({ data });
}, [data]);

const agentId = useMemo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export const REFERENCE_URL_FIELD_NAME = 'reference.url';
export const EVENT_URL_FIELD_NAME = 'event.url';
export const SIGNAL_RULE_NAME_FIELD_NAME = 'signal.rule.name';
export const SIGNAL_STATUS_FIELD_NAME = 'signal.status';
export const HOST_STATUS_FIELD_NAME = 'host.status';
export const AGENT_STATUS_FIELD_NAME = 'agent.status';
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
REFERENCE_URL_FIELD_NAME,
EVENT_URL_FIELD_NAME,
SIGNAL_STATUS_FIELD_NAME,
HOST_STATUS_FIELD_NAME,
AGENT_STATUS_FIELD_NAME,
GEO_FIELD_TYPE,
} from './constants';
import { RenderRuleName, renderEventModule, renderUrl } from './formatted_field_helpers';
Expand Down Expand Up @@ -120,7 +120,7 @@ const FormattedFieldValueComponent: React.FC<{
return (
<RuleStatus contextId={contextId} eventId={eventId} fieldName={fieldName} value={value} />
);
} else if (fieldName === HOST_STATUS_FIELD_NAME) {
} else if (fieldName === AGENT_STATUS_FIELD_NAME) {
return (
<AgentStatuses
contextId={contextId}
Expand Down

0 comments on commit 9c3d27f

Please sign in to comment.