| 1 | { |
| 2 | "description": "Monitoring a topology that is a replica set with a primary connected", |
| 3 | "uri": "mongodb://a,b", |
| 4 | "phases": [ |
| 5 | { |
| 6 | "responses": [ |
| 7 | [ |
| 8 | "a:27017", |
| 9 | { |
| 10 | "ok": 1, |
| 11 | "helloOk": true, |
| 12 | "isWritablePrimary": true, |
| 13 | "setName": "rs", |
| 14 | "setVersion": 1, |
| 15 | "primary": "a:27017", |
| 16 | "hosts": [ |
| 17 | "a:27017", |
| 18 | "b:27017" |
| 19 | ], |
| 20 | "minWireVersion": 0, |
| 21 | "maxWireVersion": 6 |
| 22 | } |
| 23 | ] |
| 24 | ], |
| 25 | "outcome": { |
| 26 | "events": [ |
| 27 | { |
| 28 | "topology_opening_event": { |
| 29 | "topologyId": "42" |
| 30 | } |
| 31 | }, |
| 32 | { |
| 33 | "topology_description_changed_event": { |
| 34 | "topologyId": "42", |
| 35 | "previousDescription": { |
| 36 | "topologyType": "Unknown", |
| 37 | "servers": [] |
| 38 | }, |
| 39 | "newDescription": { |
| 40 | "topologyType": "Unknown", |
| 41 | "servers": [ |
| 42 | { |
| 43 | "address": "a:27017", |
| 44 | "arbiters": [], |
| 45 | "hosts": [], |
| 46 | "passives": [], |
| 47 | "type": "Unknown" |
| 48 | }, |
| 49 | { |
| 50 | "address": "b:27017", |
| 51 | "arbiters": [], |
| 52 | "hosts": [], |
| 53 | "passives": [], |
| 54 | "type": "Unknown" |
| 55 | } |
| 56 | ] |
| 57 | } |
| 58 | } |
| 59 | }, |
| 60 | { |
| 61 | "server_opening_event": { |
| 62 | "topologyId": "42", |
| 63 | "address": "a:27017" |
| 64 | } |
| 65 | }, |
| 66 | { |
| 67 | "server_opening_event": { |
| 68 | "topologyId": "42", |
| 69 | "address": "b:27017" |
| 70 | } |
| 71 | }, |
| 72 | { |
| 73 | "server_description_changed_event": { |
| 74 | "topologyId": "42", |
| 75 | "address": "a:27017", |
| 76 | "previousDescription": { |
| 77 | "address": "a:27017", |
| 78 | "arbiters": [], |
| 79 | "hosts": [], |
| 80 | "passives": [], |
| 81 | "type": "Unknown" |
| 82 | }, |
| 83 | "newDescription": { |
| 84 | "address": "a:27017", |
| 85 | "arbiters": [], |
| 86 | "hosts": [ |
| 87 | "a:27017", |
| 88 | "b:27017" |
| 89 | ], |
| 90 | "passives": [], |
| 91 | "primary": "a:27017", |
| 92 | "setName": "rs", |
| 93 | "type": "RSPrimary" |
| 94 | } |
| 95 | } |
| 96 | }, |
| 97 | { |
| 98 | "topology_description_changed_event": { |
| 99 | "topologyId": "42", |
| 100 | "previousDescription": { |
| 101 | "topologyType": "Unknown", |
| 102 | "servers": [ |
| 103 | { |
| 104 | "address": "a:27017", |
| 105 | "arbiters": [], |
| 106 | "hosts": [], |
| 107 | "passives": [], |
| 108 | "type": "Unknown" |
| 109 | }, |
| 110 | { |
| 111 | "address": "b:27017", |
| 112 | "arbiters": [], |
| 113 | "hosts": [], |
| 114 | "passives": [], |
| 115 | "type": "Unknown" |
| 116 | } |
| 117 | ] |
| 118 | }, |
| 119 | "newDescription": { |
| 120 | "topologyType": "ReplicaSetWithPrimary", |
| 121 | "setName": "rs", |
| 122 | "servers": [ |
| 123 | { |
| 124 | "address": "a:27017", |
| 125 | "arbiters": [], |
| 126 | "hosts": [ |
| 127 | "a:27017", |
| 128 | "b:27017" |
| 129 | ], |
| 130 | "passives": [], |
| 131 | "primary": "a:27017", |
| 132 | "setName": "rs", |
| 133 | "type": "RSPrimary" |
| 134 | }, |
| 135 | { |
| 136 | "address": "b:27017", |
| 137 | "arbiters": [], |
| 138 | "hosts": [], |
| 139 | "passives": [], |
| 140 | "type": "Unknown" |
| 141 | } |
| 142 | ] |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | ] |
| 147 | } |
| 148 | } |
| 149 | ] |
| 150 | } |