File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,34 @@ configuration that notifies you when a replica set called
80
80
``event-replica-set`` loses its primary node:
81
81
82
82
.. 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
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ search-config.json:
81
81
82
82
.. code-block::
83
83
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
85
85
86
86
87
87
You can’t perform that action at this time.
0 commit comments