Skip to content

Commit d86b131

Browse files
committed
Format JSON in status tables
1 parent 1b33f37 commit d86b131

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/cosmos-db/monitor-activity-logs-elastic-operations.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ The image below shows how these properties appear in the JSON tab of the Activit
9292

9393
:::image type="content" source="media/monitor-activity-logs-elastic-operations/split-succeeded-status.png" lightbox="media/monitor-activity-logs-elastic-operations/split-succeeded-status.png" alt-text="Screenshot of the Succeeded status entry for a completed partition split operation.":::
9494

95-
### Activity Log Status JSON Table
95+
### Activity Log status JSON
9696

97-
The table below shows the JSON properties emitted at each stage of a partition split operation. Checkpoint 1 and Checkpoint 2 illustrate how the In Progress status updates over time as partitions complete their work.
97+
The following JSON properties are emitted at each stage of a partition split operation. Checkpoint 1 and Checkpoint 2 illustrate how the In Progress status updates over time as partitions complete their work.
9898

9999
| Status | JSON properties (Checkpoint 1) | JSON properties (Checkpoint 2) |
100100
| --- | --- | --- |
101-
| Started | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database1", "collectionName": "container1", "targetThroughput": "15000", "status": "Will split partitions 0 into different partitions" }` | |
102-
| In Progress | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database1", "collectionName": "container1", "targetThroughput": "15000", "Total Operations Required": "1", "In Progress Operations": "1", "WaitingToBeScheduled Operations": "0", "Completed Operations": "0", "Failed Operations": "0" }` | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database1", "collectionName": "container1", "targetThroughput": "15000", "Total Operations Required": "1", "In Progress Operations": "0", "WaitingToBeScheduled Operations": "0", "Completed Operations": "1", "Failed Operations": "0" }` |
103-
| Succeeded | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database1", "collectionName": "container1", "targetThroughput": "15000", "status": "Completed splits operation" }` | |
101+
| Started | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database1",` <br>&nbsp;&nbsp;`"collectionName": "container1",` <br>&nbsp;&nbsp;`"targetThroughput": "15000",` <br>&nbsp;&nbsp;`"status": "Will split partitions 0 into different partitions"` <br>`}` | |
102+
| In Progress | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database1",` <br>&nbsp;&nbsp;`"collectionName": "container1",` <br>&nbsp;&nbsp;`"targetThroughput": "15000",` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "1",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "0",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database1",` <br>&nbsp;&nbsp;`"collectionName": "container1",` <br>&nbsp;&nbsp;`"targetThroughput": "15000",` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "0",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "1",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` |
103+
| Succeeded | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database1",` <br>&nbsp;&nbsp;`"collectionName": "container1",` <br>&nbsp;&nbsp;`"targetThroughput": "15000",` <br>&nbsp;&nbsp;`"status": "Completed splits operation"` <br>`}` | |
104104

105105
## Multiple rounds of splitting
106106

@@ -156,26 +156,26 @@ In this example view, Round 1 of the split is surrounded by the blue box and sho
156156

157157
:::image type="content" source="media/monitor-activity-logs-elastic-operations/multi-round-split-rounds.png" lightbox="media/monitor-activity-logs-elastic-operations/multi-round-split-rounds.png" alt-text="Screenshot of the Activity Log portal view showing Round 1 and Round 2 split entries highlighted in separate boxes.":::
158158

159-
### Activity Log Status JSON Table
159+
### Activity Log status JSON
160160

161-
The table below shows the JSON content extracted directly from the Activity Log entries. For clarity, the common JSON fields are omitted and only the status is left.
161+
The following JSON content is extracted directly from the Activity Log entries. For clarity, the common JSON fields are omitted and only the status is left.
162162

163163
**Round 1: Split**
164164

165165
| Status | JSON properties (Checkpoint 1) | JSON properties (Checkpoint 2) |
166166
| --- | --- | --- |
167-
| Started | `{ "status": "Will split partitions 0 into different partitions" }` | |
168-
| In Progress | `{ "Total Operations Required": "1", "In Progress Operations": "1", "WaitingToBeScheduled Operations": "0", "Completed Operations": "0", "Failed Operations": "0" }` | `{ "Total Operations Required": "1", "In Progress Operations": "0", "WaitingToBeScheduled Operations": "0", "Completed Operations": "1", "Failed Operations": "0" }` |
167+
| Started | `{` <br>&nbsp;&nbsp;`"status": "Will split partitions 0 into different partitions"` <br>`}` | |
168+
| In Progress | `{` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "1",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "0",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` | `{` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "0",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "1",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` |
169169

170170
Partition 0 has finished splitting, as shown by the transition from an In Progress operation to a Completed Operation. Now we move on to split Partition 2.
171171

172172
**Round 2: Split**
173173

174174
| Status | JSON properties (Checkpoint 1) | JSON properties (Checkpoint 2) |
175175
| --- | --- | --- |
176-
| Started | `{ "status": "Will split partitions 2 into different partitions" }` | |
177-
| In Progress | `{ "Total Operations Required": "1", "In Progress Operations": "1", "WaitingToBeScheduled Operations": "0", "Completed Operations": "0", "Failed Operations": "0" }` | `{ "Total Operations Required": "1", "In Progress Operations": "0", "WaitingToBeScheduled Operations": "0", "Completed Operations": "1", "Failed Operations": "0" }` |
178-
| Succeeded | `{ "status": "Completed splits operation" }` | |
176+
| Started | `{` <br>&nbsp;&nbsp;`"status": "Will split partitions 2 into different partitions"` <br>`}` | |
177+
| In Progress | `{` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "1",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "0",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` | `{` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "0",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "1",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` |
178+
| Succeeded | `{` <br>&nbsp;&nbsp;`"status": "Completed splits operation"` <br>`}` | |
179179

180180
## Partition merge
181181

@@ -225,12 +225,12 @@ The image below shows how these properties appear in the JSON tab of the Activit
225225

226226
:::image type="content" source="media/monitor-activity-logs-elastic-operations/merge-succeeded-status.png" lightbox="media/monitor-activity-logs-elastic-operations/merge-succeeded-status.png" alt-text="Screenshot of the Succeeded status entry for a completed partition merge operation.":::
227227

228-
### Activity Log Status JSON Table
228+
### Activity Log status JSON
229229

230-
The table below shows the JSON properties emitted at each stage of a merge operation. Checkpoint 1 and Checkpoint 2 illustrate how the In Progress status updates over time as partitions complete their work.
230+
The following JSON properties are emitted at each stage of a merge operation. Checkpoint 1 and Checkpoint 2 illustrate how the In Progress status updates over time as partitions complete their work.
231231

232232
| Status | JSON properties (Checkpoint 1) | JSON properties (Checkpoint 2) |
233233
| --- | --- | --- |
234-
| Started | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database3", "collectionName": "container3", "status": "Collection <id> will merge partitions 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 into a new partition" }` | |
235-
| In Progress | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database3", "collectionName": "container3", "Total Operations Required": "1", "In Progress Operations": "1", "WaitingToBeScheduled Operations": "0", "Completed Operations": "0", "Failed Operations": "0" }` | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database3", "collectionName": "container3", "Total Operations Required": "1", "In Progress Operations": "0", "WaitingToBeScheduled Operations": "0", "Completed Operations": "1", "Failed Operations": "0" }` |
236-
| Succeeded | `{ "isSharedThroughput": "False", "resourceRid": "<id>", "databaseName": "database3", "collectionName": "container3", "status": "Completed merge operation." }` | |
234+
| Started | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database3",` <br>&nbsp;&nbsp;`"collectionName": "container3",` <br>&nbsp;&nbsp;`"status": "Collection <id> will merge partitions 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 into a new partition"` <br>`}` | |
235+
| In Progress | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database3",` <br>&nbsp;&nbsp;`"collectionName": "container3",` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "1",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "0",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database3",` <br>&nbsp;&nbsp;`"collectionName": "container3",` <br>&nbsp;&nbsp;`"Total Operations Required": "1",` <br>&nbsp;&nbsp;`"In Progress Operations": "0",` <br>&nbsp;&nbsp;`"WaitingToBeScheduled Operations": "0",` <br>&nbsp;&nbsp;`"Completed Operations": "1",` <br>&nbsp;&nbsp;`"Failed Operations": "0"` <br>`}` |
236+
| Succeeded | `{` <br>&nbsp;&nbsp;`"isSharedThroughput": "False",` <br>&nbsp;&nbsp;`"resourceRid": "<id>",` <br>&nbsp;&nbsp;`"databaseName": "database3",` <br>&nbsp;&nbsp;`"collectionName": "container3",` <br>&nbsp;&nbsp;`"status": "Completed merge operation."` <br>`}` | |

0 commit comments

Comments
 (0)