...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/monitoring/load_balancer.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/monitoring

     1{
     2  "description": "Monitoring a load balancer",
     3  "uri": "mongodb://a:27017/?loadBalanced=true",
     4  "phases": [
     5    {
     6      "outcome": {
     7        "events": [
     8          {
     9            "topology_opening_event": {
    10              "topologyId": "42"
    11            }
    12          },
    13          {
    14            "topology_description_changed_event": {
    15              "topologyId": "42",
    16              "previousDescription": {
    17                "topologyType": "Unknown",
    18                "servers": []
    19              },
    20              "newDescription": {
    21                "topologyType": "LoadBalanced",
    22                "servers": [
    23                  {
    24                    "address": "a:27017",
    25                    "arbiters": [],
    26                    "hosts": [],
    27                    "passives": [],
    28                    "type": "Unknown"
    29                  }
    30                ]
    31              }
    32            }
    33          },
    34          {
    35            "server_opening_event": {
    36              "topologyId": "42",
    37              "address": "a:27017"
    38            }
    39          },
    40          {
    41            "server_description_changed_event": {
    42              "topologyId": "42",
    43              "address": "a:27017",
    44              "previousDescription": {
    45                "address": "a:27017",
    46                "arbiters": [],
    47                "hosts": [],
    48                "passives": [],
    49                "type": "Unknown"
    50              },
    51              "newDescription": {
    52                "address": "a:27017",
    53                "arbiters": [],
    54                "hosts": [],
    55                "passives": [],
    56                "type": "LoadBalancer"
    57              }
    58            }
    59          },
    60          {
    61            "topology_description_changed_event": {
    62              "topologyId": "42",
    63              "previousDescription": {
    64                "topologyType": "LoadBalanced",
    65                "servers": [
    66                  {
    67                    "address": "a:27017",
    68                    "arbiters": [],
    69                    "hosts": [],
    70                    "passives": [],
    71                    "type": "Unknown"
    72                  }
    73                ]
    74              },
    75              "newDescription": {
    76                "topologyType": "LoadBalanced",
    77                "servers": [
    78                  {
    79                    "address": "a:27017",
    80                    "arbiters": [],
    81                    "hosts": [],
    82                    "passives": [],
    83                    "type": "LoadBalancer"
    84                  }
    85                ]
    86              }
    87            }
    88          }
    89        ]
    90      }
    91    }
    92  ]
    93}

View as plain text