Skip to content

Commit

Permalink
Map UI label/message/resourceType for changes to activity log setting…
Browse files Browse the repository at this point in the history
…s entries
  • Loading branch information
nelsonkopliku committed Aug 6, 2024
1 parent 07e51f7 commit a834f8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/js/lib/model/activityLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const USER_DELETION = 'user_deletion';
export const PROFILE_UPDATE = 'profile_update';
export const CLUSTER_CHECKS_EXECUTION_REQUEST =
'cluster_checks_execution_request';
export const ACTIVITY_LOG_SETTINGS_UPDATE = 'activity_log_settings_update';

// Host events
export const HEARTBEAT_FAILED = 'heartbeat_failed';
Expand Down Expand Up @@ -110,6 +111,7 @@ export const ACTIVITY_TYPES = [
USER_DELETION,
PROFILE_UPDATE,
CLUSTER_CHECKS_EXECUTION_REQUEST,
ACTIVITY_LOG_SETTINGS_UPDATE,
// Host events
HEARTBEAT_FAILED,
HEARTBEAT_SUCCEEDED,
Expand Down Expand Up @@ -257,6 +259,11 @@ export const ACTIVITY_TYPES_CONFIG = {
message: (_entry) => `Checks execution requested for cluster`,
resource: clusterResourceType,
},
[ACTIVITY_LOG_SETTINGS_UPDATE]: {
label: 'Activity Log Settings Updated',
message: (_entry) => `Activity log settings were updated`,
resource: (_entry) => 'Activity Log Settings',
},
// Host events
[HEARTBEAT_FAILED]: {
label: 'Heartbeat Failed',
Expand Down

0 comments on commit a834f8c

Please sign in to comment.