-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrument Index Management with user action telemetry #32595
Merged
cjcenizal
merged 7 commits into
elastic:master
from
cjcenizal:user-action-index-management
Mar 11, 2019
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
23e924b
Fix API endpoint typo indices/clear_caches -> indices/clear_cache.
cjcenizal 5203fe2
Track Index Management index actions.
cjcenizal 8b0d1f0
Track user actions for opening detail tab and viewing various tabs.
cjcenizal b5328bc
Track update settings action.
cjcenizal 0f38c77
Move request-tracking logic into api service.
cjcenizal b0e0003
Track app load.
cjcenizal 2e33278
Merge branch 'master' of github.com:elastic/kibana into user-action-i…
cjcenizal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
65 changes: 65 additions & 0 deletions
65
x-pack/plugins/index_management/common/constants/user_action.js
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,65 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export const UA_APP_NAME = 'index-management'; | ||
|
||
export const UA_APP_LOAD = 'app_load'; | ||
export const UA_UPDATE_SETTINGS = 'update_settings'; | ||
export const UA_INDEX_CLEAR_CACHE = 'index_clear_cache'; | ||
export const UA_INDEX_CLEAR_CACHE_MANY = 'index_clear_cache_many'; | ||
export const UA_INDEX_CLOSE = 'index_close'; | ||
export const UA_INDEX_CLOSE_MANY = 'index_close_many'; | ||
export const UA_INDEX_DELETE = 'index_delete'; | ||
export const UA_INDEX_DELETE_MANY = 'index_delete_many'; | ||
export const UA_INDEX_FLUSH = 'index_flush'; | ||
export const UA_INDEX_FLUSH_MANY = 'index_flush_many'; | ||
export const UA_INDEX_FORCE_MERGE = 'index_force_merge'; | ||
export const UA_INDEX_FORCE_MERGE_MANY = 'index_force_merge_many'; | ||
export const UA_INDEX_FREEZE = 'index_freeze'; | ||
export const UA_INDEX_FREEZE_MANY = 'index_freeze_many'; | ||
export const UA_INDEX_OPEN = 'index_open'; | ||
export const UA_INDEX_OPEN_MANY = 'index_open_many'; | ||
export const UA_INDEX_REFRESH = 'index_refresh'; | ||
export const UA_INDEX_REFRESH_MANY = 'index_refresh_many'; | ||
export const UA_INDEX_SETTINGS_EDIT = 'index_settings_edit'; | ||
export const UA_INDEX_UNFREEZE = 'index_unfreeze'; | ||
export const UA_INDEX_UNFREEZE_MANY = 'index_unfreeze_many'; | ||
export const UA_SHOW_DETAILS_CLICK = 'show_details_click'; | ||
export const UA_DETAIL_PANEL_EDIT_SETTINGS_TAB = 'detail_panel_edit_settings_tab'; | ||
export const UA_DETAIL_PANEL_MAPPING_TAB = 'detail_panel_mapping_tab'; | ||
export const UA_DETAIL_PANEL_SETTINGS_TAB = 'detail_panel_settings_tab'; | ||
export const UA_DETAIL_PANEL_STATS_TAB = 'detail_panel_stats_tab'; | ||
export const UA_DETAIL_PANEL_SUMMARY_TAB = 'detail_panel_summary_tab'; | ||
|
||
export const USER_ACTIONS = [ | ||
UA_APP_LOAD, | ||
UA_UPDATE_SETTINGS, | ||
UA_INDEX_CLEAR_CACHE, | ||
UA_INDEX_CLEAR_CACHE_MANY, | ||
UA_INDEX_CLOSE, | ||
UA_INDEX_CLOSE_MANY, | ||
UA_INDEX_DELETE, | ||
UA_INDEX_DELETE_MANY, | ||
UA_INDEX_FLUSH, | ||
UA_INDEX_FLUSH_MANY, | ||
UA_INDEX_FORCE_MERGE, | ||
UA_INDEX_FORCE_MERGE_MANY, | ||
UA_INDEX_FREEZE, | ||
UA_INDEX_FREEZE_MANY, | ||
UA_INDEX_OPEN, | ||
UA_INDEX_OPEN_MANY, | ||
UA_INDEX_REFRESH, | ||
UA_INDEX_REFRESH_MANY, | ||
UA_INDEX_SETTINGS_EDIT, | ||
UA_INDEX_UNFREEZE, | ||
UA_INDEX_UNFREEZE_MANY, | ||
UA_SHOW_DETAILS_CLICK, | ||
UA_DETAIL_PANEL_EDIT_SETTINGS_TAB, | ||
UA_DETAIL_PANEL_MAPPING_TAB, | ||
UA_DETAIL_PANEL_SETTINGS_TAB, | ||
UA_DETAIL_PANEL_STATS_TAB, | ||
UA_DETAIL_PANEL_SUMMARY_TAB, | ||
]; |
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
11 changes: 11 additions & 0 deletions
11
x-pack/plugins/index_management/public/constants/detail_panel_tabs.js
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,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export const TAB_SUMMARY = 'TAB_SUMMARY'; | ||
export const TAB_SETTINGS = 'TAB_SETTINGS'; | ||
export const TAB_MAPPING = 'TAB_MAPPING'; | ||
export const TAB_STATS = 'TAB_STATS'; | ||
export const TAB_EDIT_SETTINGS = 'TAB_EDIT_SETTINGS'; |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lifecycle is deprecated (https://reactjs.org/blog/2018/03/29/react-v-16-3.html). We should use
componentDidMount()