-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] [Endpoint] Add endpoint details activity log (#99795
) (#101244) * WIP add tabs for endpoint details * fetch activity log for endpoint this is work in progress with dummy data * refactor to hold host details and activity log within endpointDetails * api for fetching actions log * add a selector for getting selected agent id * use the new api to show actions log * review changes * move util function to common/utils in order to use it in endpoint_hosts as well as in trusted _apps review suggestion * use util function to get API path review suggestion * sync url params with details active tab review suggestion * fix types due to merge commit refs 3722552 * use AsyncResourseState type review suggestions * sort entries chronologically with recent at the top * adjust icon sizes within entries to match mocks * remove endpoint list paging stuff (not for now) * fix import after sync with master * make the search bar work (sort of) this needs to be fleshed out in a later PR * add tests to middleware for now * use snake case for naming routes review changes * rename and use own relative time function review change * use euiTheme tokens review change * add a comment review changes * log errors to kibana log and unwind stack review changes * use FleetActionGenerator for mocking data review changes Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Ashokaditya <am.struktr@gmail.com>
- Loading branch information
1 parent
b7070cb
commit c42fbf7
Showing
30 changed files
with
868 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/builders.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { Immutable } from '../../../../../common/endpoint/types'; | ||
import { DEFAULT_POLL_INTERVAL } from '../../../common/constants'; | ||
import { createUninitialisedResourceState } from '../../../state'; | ||
import { EndpointState } from '../types'; | ||
|
||
export const initialEndpointPageState = (): Immutable<EndpointState> => { | ||
return { | ||
hosts: [], | ||
pageSize: 10, | ||
pageIndex: 0, | ||
total: 0, | ||
loading: false, | ||
error: undefined, | ||
endpointDetails: { | ||
activityLog: createUninitialisedResourceState(), | ||
hostDetails: { | ||
details: undefined, | ||
detailsLoading: false, | ||
detailsError: undefined, | ||
}, | ||
}, | ||
policyResponse: undefined, | ||
policyResponseLoading: false, | ||
policyResponseError: undefined, | ||
location: undefined, | ||
policyItems: [], | ||
selectedPolicyId: undefined, | ||
policyItemsLoading: false, | ||
endpointPackageInfo: undefined, | ||
nonExistingPolicies: {}, | ||
agentPolicies: {}, | ||
endpointsExist: true, | ||
patterns: [], | ||
patternsError: undefined, | ||
isAutoRefreshEnabled: true, | ||
autoRefreshInterval: DEFAULT_POLL_INTERVAL, | ||
agentsWithEndpointsTotal: 0, | ||
agentsWithEndpointsTotalError: undefined, | ||
endpointsTotal: 0, | ||
endpointsTotalError: undefined, | ||
queryStrategyVersion: undefined, | ||
policyVersionInfo: undefined, | ||
hostStatus: undefined, | ||
isolationRequestState: createUninitialisedResourceState(), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.