File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 16
16
"Source" :" cluster0: localhost:27017" ,
17
17
"Destination" :" cluster1: localhost:27018"
18
18
}
19
- }
19
+ },
20
+ "success" : true
20
21
}
Original file line number Diff line number Diff line change 8
8
- Type
9
9
- Description
10
10
11
+ * - ``success ``
12
+ - boolean
13
+ - Status of the ``progress `` command. Value is ``true `` if the
14
+ command succeeds and ``false `` if the command fails.
15
+
11
16
* - ``error ``
12
17
- string
13
- - If an error occurred, gives a detailed description of the error.
14
- This field is omitted when the call to the endpoint is successful
18
+ - Type of error.
15
19
20
+ * - ``errorDescription ``
21
+ - string
22
+ - Detailed description of the error.
Original file line number Diff line number Diff line change 114
114
115
115
* - ``mongosyncID ``
116
116
- string
117
- - The identifier string for the ``mongosync `` instance.
117
+ - Identifier string for the ``mongosync `` instance.
118
118
119
119
* - ``coordinatorID ``
120
120
- string
121
- - The identifier string for the coordinator instance.
121
+ - Identifier string for the coordinator instance.
122
122
123
123
- When ``mongosync `` is coordinated by another instance, this field shows
124
124
the identifier string for the coordinator instance.
128
128
129
129
- When ``mongosync `` starts up, this field returns ``null `` until
130
130
``mongosync `` identifies the coordinator.
131
-
Original file line number Diff line number Diff line change @@ -33,8 +33,14 @@ The ``progress`` endpoint returns either an updated status or an error.
33
33
Successful Response
34
34
~~~~~~~~~~~~~~~~~~~
35
35
36
+ The response object contains 2 top-level fields, ``success`` and
37
+ ``progress``.
38
+
39
+ The ``success`` field contains the status of the ``progress`` command.
40
+ Value is ``true`` if always ``true``.
41
+
36
42
If ``mongosync`` successfully gets the status of the sync process,
37
- all response fields are wrapped in a top-level ``progress`` object
43
+ all response fields are wrapped in the top-level ``progress`` object
38
44
with the following fields:
39
45
40
46
.. include:: /includes/api/tables/progress-response.rst
@@ -43,7 +49,7 @@ Error Response
43
49
~~~~~~~~~~~~~~
44
50
45
51
If ``mongosync`` encounters an error, the ``progress`` endpoint returns
46
- the following field :
52
+ the following fields :
47
53
48
54
.. include:: /includes/api/tables/progress-error-response.rst
49
55
You can’t perform that action at this time.
0 commit comments