Skip to content

Commit 8446e34

Browse files
committed
copy review feedback
1 parent 947d401 commit 8446e34

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

source/reference/json/alert-config-file.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,34 @@ configuration that notifies you when a replica set called
8080
``event-replica-set`` loses its primary node:
8181

8282
.. literalinclude:: /includes/alert-configuration-config-file.json
83+
84+
Example Alert Configuration Commands
85+
------------------------------------
86+
87+
After you create the file, run the {+atlas-cli+}
88+
command to create or update the alert configuration.
89+
90+
Create an Alert Configuration
91+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92+
93+
To create an alert configuration, specify the ``--flag`` option
94+
and the path to the file. The following example creates an
95+
alert configuration by using a configuration file named
96+
``alert-config.json``:
97+
98+
.. code-block::
99+
100+
atlas alerts settings create --file /alert-config.json
101+
102+
Update an Alert Configuration
103+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104+
105+
To update an alert configuration, specify the ID of the
106+
alert configuration that you want to update, the ``--flag``
107+
option, and the path to the file. The following example updates
108+
an existing alert configuration by using a configuration file
109+
named ``alert-config.json``:
110+
111+
.. code-block::
112+
113+
atlas alerts settings update <alertConfigId> --file /alert-config.json

source/reference/json/search-index-config-file.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ search-config.json:
8181

8282
.. code-block::
8383

84-
atlas clusters search indexes create --clusterName myCluster --file search-config.json --output json
84+
atlas clusters search indexes create --clusterName myCluster --file /search-config.json --output json
8585

8686

8787

0 commit comments

Comments
 (0)