-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix API endpoint typo indices/clear_caches -> indices/clear_cache. * Track Index Management index actions. * Track user actions for opening detail tab and viewing various tabs. - Use constants instead of hard-coded strings to identify tabs. - Internationalize tab labels. * Track update settings action. * Track refresh action. * Track app load.
- Loading branch information
Showing
16 changed files
with
362 additions
and
42 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
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.