name | data type | description |
---|---|---|
topology | string | topology of the cluster |
name | string | name of the cluster |
services | array of Service | service list |
datasources | array of Datasource | datasource list only for simple clusters without multiple services |
routers | array of Router | connector list |
Example
{ "topology" : "clustered_primary", "name" : "global", "services" : [ { "name" : "west", "role" : "master", "datasources" : [ { "name" : "db1", "role" : "master" }, { "name" : "db2", "role" : "slave" } ], "error" : true, "errorText" : "..." }, { "name" : "east", "role" : "slave", "datasources" : [ { "name" : "db2", "role" : "slave" }, { "name" : "db2", "role" : "slave" } ], "error" : true, "errorText" : "..." } ], "datasources" : [ { "name" : "db1", "role" : "master" }, { "name" : "db2", "role" : "slave" } ], "routers" : [ { "name" : "db1", "connections" : { "active" : 12345, "created" : 12345 } }, { "name" : "db2", "connections" : { "active" : 12345, "created" : 12345 } } ] }