...

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

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

     1description: "Monitoring a load balancer"
     2uri: "mongodb://a:27017/?loadBalanced=true"
     3phases:
     4  -
     5    outcome:
     6      events:
     7        -
     8          topology_opening_event:
     9            topologyId: "42"
    10        -
    11          topology_description_changed_event:
    12            topologyId: "42"
    13            previousDescription:
    14              topologyType: "Unknown"
    15              servers: []
    16            newDescription:
    17              topologyType: "LoadBalanced"
    18              servers:
    19                -
    20                  address: "a:27017"
    21                  arbiters: []
    22                  hosts: []
    23                  passives: []
    24                  type: "Unknown"
    25        -
    26          server_opening_event:
    27            topologyId: "42"
    28            address: "a:27017"
    29        -
    30          server_description_changed_event:
    31            topologyId: "42"
    32            address: "a:27017"
    33            previousDescription:
    34              address: "a:27017"
    35              arbiters: []
    36              hosts: []
    37              passives: []
    38              type: "Unknown"
    39            newDescription:
    40              address: "a:27017"
    41              arbiters: []
    42              hosts: []
    43              passives: []
    44              type: "LoadBalancer"
    45        -
    46          topology_description_changed_event:
    47            topologyId: "42"
    48            previousDescription:
    49              topologyType: "LoadBalanced"
    50              servers:
    51                -
    52                  address: "a:27017"
    53                  arbiters: []
    54                  hosts: []
    55                  passives: []
    56                  type: "Unknown"
    57            newDescription:
    58              topologyType: "LoadBalanced"
    59              servers:
    60                -
    61                  address: "a:27017"
    62                  arbiters: []
    63                  hosts: []
    64                  passives: []
    65                  type: "LoadBalancer"

View as plain text