Skip to content

Commit

Permalink
DOCSP-32891: update example with missing flag (#2215)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki authored Sep 6, 2023
1 parent c74dbb4 commit 2e5cd75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/atlascli/command/atlas-alerts-settings-create.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Examples
# Create an alert configuration that notifies a user when they join a group for the project with the ID 5df90590f10fab5e33de2305:
atlas alerts settings create --event JOINED_GROUP --enabled \
--notificationType USER --notificationEmailEnabled \
--notificationUsername [email protected] \
--notificationIntervalMin 60 --notificationUsername [email protected] \
--output json --projectId 5df90590f10fab5e33de2305

.. code-block::
Expand Down
2 changes: 1 addition & 1 deletion docs/atlascli/command/atlas-alerts-settings-update.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Examples
# Modify the alert configuration with the ID 5d1113b25a115342acc2d1aa so that it notifies a user when they join a group for the project with the ID 5df90590f10fab5e33de2305:
atlas alerts settings update 5d1113b25a115342acc2d1aa --event JOINED_GROUP --enabled \
--notificationType USER --notificationEmailEnabled \
--notificationUsername [email protected] \
--notificationIntervalMin 60 --notificationUsername [email protected] \
--output json --projectId 5df90590f10fab5e33de2305

.. code-block::
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/atlas/alerts/settings/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func CreateBuilder() *cobra.Command {
Example: fmt.Sprintf(` # Create an alert configuration that notifies a user when they join a group for the project with the ID 5df90590f10fab5e33de2305:
%s alerts settings create --event JOINED_GROUP --enabled \
--notificationType USER --notificationEmailEnabled \
--notificationUsername [email protected] \
--notificationIntervalMin 60 --notificationUsername [email protected] \
--output json --projectId 5df90590f10fab5e33de2305
# Create alert using json file containing alert configuration
%s alerts settings create 5d1113b25a115342acc2d1aa --file alerts.json`, cli.ExampleAtlasEntryPoint(), cli.ExampleAtlasEntryPoint()),
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/atlas/alerts/settings/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func UpdateBuilder() *cobra.Command {
Example: fmt.Sprintf(` # Modify the alert configuration with the ID 5d1113b25a115342acc2d1aa so that it notifies a user when they join a group for the project with the ID 5df90590f10fab5e33de2305:
%s alerts settings update 5d1113b25a115342acc2d1aa --event JOINED_GROUP --enabled \
--notificationType USER --notificationEmailEnabled \
--notificationUsername [email protected] \
--notificationIntervalMin 60 --notificationUsername [email protected] \
--output json --projectId 5df90590f10fab5e33de2305
# Update alert using json file input containing alert configuration
%s alerts settings update 5d1113b25a115342acc2d1aa --file alerts.json`, cli.ExampleAtlasEntryPoint(), cli.ExampleAtlasEntryPoint()),
Expand Down

0 comments on commit 2e5cd75

Please sign in to comment.