Skip to content

Commit 6ccfa92

Browse files
DOCSP-11361 Add a global output flag (#179)
* DOCSP-11361 Add a global output flag * DOCSP-11361 indentation fix DOCSP-11361 minor fix DOCSP-11361 changes * DOCSP-11361 doc updates for feedback
1 parent b8f8771 commit 6ccfa92

File tree

152 files changed

+945
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+945
-128
lines changed

source/includes/alert-describe-options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
- Unique identifier of the alert you want to describe.
1313
- yes
1414

15+
* - ``--output``, ``-o``
16+
- string
17+
- .. include:: /includes/extracts/fact-basic-options-output.rst
18+
- no
19+
1520
* - ``--profile``, ``-P``
1621
- string
1722
- Name of the profile where the public and private

source/includes/alert-list-options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
``100`` if not specified.
1414
- no
1515

16+
* - ``--output``, ``-o``
17+
- string
18+
- .. include:: /includes/extracts/fact-basic-options-output.rst
19+
- no
20+
1621
* - ``--page``
1722
- integer
1823
- Page number (1-based). Defaults to ``1`` if not specified.

source/includes/alerts-ack-options.rst

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,23 @@
1212
- ID of the alert you want to acknowledge or un-acknowledge.
1313
- yes
1414

15-
* - ``--forever``
15+
* - ``--comment``
1616
- string
17-
- Prevent the alert from resuming at any point in the future.
18-
19-
You can't set both ``--forever`` and ``--until`` in the same
20-
command.
17+
- Comment describing the alert acknowledgement. If included, wrap
18+
the comment in double quotes.
2119
- no
2220

23-
* - ``--until``
21+
* - ``--forever``
2422
- string
25-
- |iso8601-time| through which you acknowledge this alert. After
26-
this time passes, the alert becomes un-acknowledged.
23+
- Prevent the alert from resuming at any point in the future.
2724

28-
You can't set both ``--until`` and ``--forever`` in the same
25+
You can't set both ``--forever`` and ``--until`` in the same
2926
command.
3027
- no
3128

32-
* - ``--comment``
33-
- string
34-
- Comment describing the alert acknowledgement. If included, wrap
35-
the comment in double quotes.
29+
* - ``--output``, ``-o``
30+
- string
31+
- .. include:: /includes/extracts/fact-basic-options-output.rst
3632
- no
3733

3834
* - ``--profile``, ``-P``
@@ -53,3 +49,12 @@
5349
omitted, uses the project ID in the profile or
5450
:ref:`environment variable <mcli-env-var>`.
5551
- no
52+
53+
* - ``--until``
54+
- string
55+
- |iso8601-time| through which you acknowledge this alert. After
56+
this time passes, the alert becomes un-acknowledged.
57+
58+
You can't set both ``--until`` and ``--forever`` in the same
59+
command.
60+
- no

source/includes/alerts-unack-options.rst

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,17 @@
1212
- ID of the alert you want to unacknowledge.
1313
- yes
1414

15-
* - ``--until``
16-
- string
17-
- |iso8601-time| through which you unacknowledge this alert. After
18-
this time passes, the alert becomes acknowledged.
19-
20-
You can't set both ``--until`` and ``--forever`` in the same
21-
command.
22-
- no
23-
2415
* - ``--comment``
2516
- string
2617
- Comment describing the alert unacknowledgement. If included,
2718
wrap the comment in double quotes.
2819
- no
2920

21+
* - ``--output``, ``-o``
22+
- string
23+
- .. include:: /includes/extracts/fact-basic-options-output.rst
24+
- no
25+
3026
* - ``--profile``, ``-P``
3127
- string
3228
- Name of the profile where the project ID and the |svc-api-key|\s
@@ -45,3 +41,12 @@
4541
omitted, uses the project ID in the profile or
4642
:ref:`environment variable <mcli-env-var>`.
4743
- no
44+
45+
* - ``--until``
46+
- string
47+
- |iso8601-time| through which you unacknowledge this alert. After
48+
this time passes, the alert becomes acknowledged.
49+
50+
You can't set both ``--until`` and ``--forever`` in the same
51+
command.
52+
- no

source/includes/backup-checkpoints-options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
- ID of the cluster.
1313
- yes
1414

15+
* - ``--output``, ``-o``
16+
- string
17+
- .. include:: /includes/extracts/fact-basic-options-output.rst
18+
- no
19+
1520
* - ``--profile``, ``-P``
1621
- string
1722
- Name of the profile where the project ID and the |svc-api-key|\s

source/includes/basic-options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
``admin``.
1313
- no
1414

15+
* - ``--output``, ``-o``
16+
- string
17+
- .. include:: /includes/extracts/fact-basic-options-output.rst
18+
- no
19+
1520
* - ``--profile``, ``-P``
1621
- string
1722
- Name of the profile where the public and private
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ref: fact-basic-options-output
2+
content: |
3+
Command output format. Value must be ``json``. If omitted, defaults to
4+
``json``.
5+
---
6+
ref: fact-basic-options-profile
7+
content: |
8+
Name of the profile where the public and private keys for the project are
9+
set. If omitted, uses the {+default-profile+}. To learn more about creating a
10+
profile, see :ref:`mcli-configure`.
11+
...

source/includes/list-table-events-list-options.rst

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@
77
- Description
88
- Required?
99

10-
* - ``--profile``, ``-P``
11-
- string
12-
- Name of the profile where the project ID and the |svc-api-key|\s
13-
for the project are saved. If omitted, uses the {+default-profile+}.
14-
To learn more about creating a profile, see :ref:`mcli-configure`.
15-
- no
16-
17-
* - ``--projectId``
18-
- string
19-
- Unique identifier of the project for which to retrieve events.
20-
- yes
21-
22-
* - ``--orgId``
23-
- string
24-
- Unique identifier of the organization for which to retrieve events.
25-
- yes
26-
2710
* - ``--limit``
2811
- integer
2912
- Number of items per page.
@@ -39,11 +22,33 @@
3922
- Return events whose created date is greater than or equal to it.
4023
- no
4124

25+
* - ``--orgId``
26+
- string
27+
- Unique identifier of the organization for which to retrieve events.
28+
- yes
29+
30+
* - ``--output``, ``-o``
31+
- string
32+
- .. include:: /includes/extracts/fact-basic-options-output.rst
33+
- no
34+
4235
* - ``--page``
4336
- integer
4437
- Page number.
4538
- no
4639

40+
* - ``--profile``, ``-P``
41+
- string
42+
- Name of the profile where the project ID and the |svc-api-key|\s
43+
for the project are saved. If omitted, uses the {+default-profile+}.
44+
To learn more about creating a profile, see :ref:`mcli-configure`.
45+
- no
46+
47+
* - ``--projectId``
48+
- string
49+
- Unique identifier of the project for which to retrieve events.
50+
- yes
51+
4752
.. note::
4853

4954
The ``--orgId`` and ``--projectId`` flags are exclusive. You must use one or

source/includes/metrics-disks-describe-options.rst

Lines changed: 41 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
- Description
88
- Required?
99

10-
* - ``<hostID>``
11-
- String
12-
- The host ID of the server running the MongoDB process.
13-
- yes
14-
1510
* - ``<partition-name>``
1611
- string
1712
- The name of the disk or partition for which to get available metrics.
1813
- yes
1914

15+
* - ``end``
16+
- String
17+
- The time at which to stop retrieving metrics, as specified by an
18+
ISO-8601 timestamp string. If you specify ``end``, you must also
19+
specify ``start``. Mutually exclusive with ``period``.
20+
- yes
21+
2022
* - ``granularity``
2123
- String
2224
- An ISO-8601-formatted time period that specifies the interval
@@ -32,13 +34,46 @@
3234
- ``P1D``
3335

3436
- yes
35-
37+
38+
* - ``<hostID>``
39+
- String
40+
- The host ID of the server running the MongoDB process.
41+
- yes
42+
43+
* - ``--limit``
44+
- number
45+
- Number of items per page.
46+
- no
47+
48+
* - ``--output``, ``-o``
49+
- string
50+
- .. include:: /includes/extracts/fact-basic-options-output.rst
51+
- no
52+
53+
* - ``--page``
54+
- number
55+
- Page number
56+
- no
57+
3658
* - ``period``
3759
- String
3860
- An ISO-8601-formatted time period that specifies the length of time in
3961
the past to query. For example, to request the last 36 hours, specify:
4062
``period=P1DT12H``. Mutually exclusive with ``start`` and ``end``.
4163
- yes
64+
65+
* - ``--profile``, ``-P``
66+
- string
67+
- Name of the profile where the project ID and the |svc-api-key|\s
68+
for the project are saved. If omitted, uses the {+default-profile+}.
69+
To learn more about creating a profile, see :ref:`mcli-configure`.
70+
- no
71+
72+
* - ``--projectId``
73+
- string
74+
- Unique identifier of the project for which to retrieve events. If
75+
omitted, uses the project ID listed in the profile.
76+
- no
4277

4378
* - ``start``
4479
- String
@@ -47,13 +82,6 @@
4782
specify ``end``. Mutually exclusive with ``period``.
4883
- yes
4984

50-
* - ``end``
51-
- String
52-
- The time at which to stop retrieving metrics, as specified by an
53-
ISO-8601 timestamp string. If you specify ``end``, you must also
54-
specify ``start``. Mutually exclusive with ``period``.
55-
- yes
56-
5785
* - ``type``
5886
- String
5987
- Specifies which metric to return. If ``type`` is not specified, all
@@ -93,26 +121,3 @@
93121
- Measures the free disk space and used disk space on the disk partition
94122
used by MongoDB.
95123
- no
96-
97-
* - ``--limit``
98-
- number
99-
- Number of items per page.
100-
- no
101-
102-
* - ``--page``
103-
- number
104-
- Page number
105-
- no
106-
107-
* - ``--profile``, ``-P``
108-
- string
109-
- Name of the profile where the project ID and the |svc-api-key|\s
110-
for the project are saved. If omitted, uses the {+default-profile+}.
111-
To learn more about creating a profile, see :ref:`mcli-configure`.
112-
- no
113-
114-
* - ``--projectId``
115-
- string
116-
- Unique identifier of the project for which to retrieve events. If
117-
omitted, uses the project ID listed in the profile.
118-
- no

source/includes/metrics-process-options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
*or* ``start`` and ``end``.
3333
- yes
3434

35+
* - ``--output``, ``-o``
36+
- string
37+
- .. include:: /includes/extracts/fact-basic-options-output.rst
38+
- no
39+
3540
* - ``period``
3641
- String
3742
- An ISO-8601-formatted time period that specifies the length of time in

source/includes/mms-backup-restore-start-options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
- Cannot set ``checkpointId`` or ``pointInTimeUTCMillis``.
6767
- no
6868

69+
* - ``--output``, ``-o``
70+
- string
71+
- .. include:: /includes/extracts/fact-basic-options-output.rst
72+
- no
73+
6974
* - ``--pointInTimeUTCMillis``
7075
- integer
7176
- *Only available for AUTOMATED RESTORE of replica sets.*

source/reference/atlas/alerts-describe.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ Syntax
2525
.. code-block:: text
2626

2727
mongocli atlas alert|alerts describe <alertID>
28+
[ --output|-o json ]
2829
[ --profile|-P <profile-name> ]
2930
[ --projectId <id-of-project> ]
3031

32+
.. include:: /includes/fact-command-line-help.rst
33+
3134
.. _atlas-alerts-describe-options:
3235

3336
Options

source/reference/atlas/alerts-list.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ Syntax
2626

2727
mongocli atlas alert|alerts list|ls
2828
[ --limit <number-of-items-per-page> ]
29+
[ --output|-o json ]
2930
[ --page <page-number> ]
3031
[ --profile|-P <profile-name> ]
3132
[ --projectId <id-of-project> ]
3233
[ --status <alert-status> ]
3334

35+
.. include:: /includes/fact-command-line-help.rst
36+
3437
.. _atlas-alerts-list-options:
3538

3639
Options

source/reference/atlas/alerts-settings-create.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ Syntax
3232
[ --matcherOperator <operator> ]
3333
[ --matcherValue <value> ]
3434
[ --notification* (notification flags) ]
35+
[ --output|-o json ]
3536
[ --projectId <id-of-project> ]
3637
[ --profile|-P <profile-name> ]
3738

39+
.. include:: /includes/fact-command-line-help.rst
40+
3841
.. _atlas-crete-alerts-settings-options:
3942

4043
Options
@@ -256,6 +259,11 @@ Options
256259
- VictorOps routing key
257260
- Only if ``notificationType`` is ``VICTOR_OPS``.
258261

262+
* - ``--output``, ``-o``
263+
- string
264+
- .. include:: /includes/extracts/fact-basic-options-output.rst
265+
- no
266+
259267
* - ``--profile``, ``-P``
260268
- string
261269
- Name of the profile where the public and private

0 commit comments

Comments
 (0)