Skip to content

Commit

Permalink
Enhance the tctl notifications command (#48829)
Browse files Browse the repository at this point in the history
- Add the ability create notifications with a custom TTL
  (previously we relied on the server-provided default of 30 days)
- Add the ability to create notifications with custom labels
- Add (non-system) labels to the `tctl notifications ls` output
- Add the ability to filter by label when listing notifications

Closes #48631
  • Loading branch information
zmb3 authored Nov 13, 2024
1 parent b6776b4 commit 2298901
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 60 deletions.
104 changes: 62 additions & 42 deletions api/gen/proto/go/teleport/notifications/v1/notifications_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ message NotificationFilters {
bool global_only = 2;
// user_created_only is whether to only list user-created notifications (ie. notifications created by an admin via the tctl interface).
bool user_created_only = 3;
// labels is used to request only notifications with specific labels.
map<string, string> labels = 4;
}

// ListNotificationsResponse is the response from listing a user's notifications.
Expand Down
Loading

0 comments on commit 2298901

Please sign in to comment.