Service
name | data type | constraints | description |
---|---|---|---|
name | string | data service name | |
type | ClusterTopology | cluster type | |
role | string | data service role | |
state | ResourceState | data service state | |
policy | ClusterPolicyManagerMode | cluster policy | |
coordinator | string | coordinator name | |
lastShunResult | string | last shun result | |
lastError | string | last error | |
alertStatus | DataSourceAlertStatus | alert status | |
alertMessage | string | alert message | |
datasources | array of Datasource | datasource list in this service | |
error | boolean | required boolean | error set to true in case of fetching services |
errorText | string | error text in case of an error |
Example
{ "name" : "west", "type" : "clustered_master_slave", "role" : "MASTER", "state" : "ONLINE", "policy" : "AUTOMATIC", "coordinator" : "db1", "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "WARN", "alertMessage" : "...", "datasources" : [ { "name" : "db1", "role" : "master", "state" : "ONLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "DIMINISHED", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { "state" : "ONLINE" }, "replicator" : { "role" : "MASTER", "state" : "ONLINE", "seqno" : 12345, "minStoredSeqno" : 12345, "maxStoredSeqno" : 12345, "appliedLatency" : 1.0, "relativeLatency" : 1.981, "appliedLastEventId" : "mysql-bin.000153:0000000000000873;-1", "pipelineSource" : "thls://db1:2112/", "version" : "Tungsten Clustering 7.0.0 build 7" }, "dataserver" : { "state" : "ONLINE" }, "connections" : { "active" : 12345, "created" : 12345 } }, { "name" : "db2", "role" : "slave", "state" : "OFFLINE", "groupId" : 12345, "lastShunResult" : "...", "lastError" : "...", "alertStatus" : "CRITICAL", "alertMessage" : "...", "standby" : true, "archive" : true, "witness" : true, "manager" : { "state" : "OFFLINE" }, "replicator" : { "role" : "SLAVE", "state" : "OFFLINE", "seqno" : 12345, "minStoredSeqno" : 12345, "maxStoredSeqno" : 12345, "appliedLatency" : 1.0, "relativeLatency" : 1.981, "appliedLastEventId" : "mysql-bin.000153:0000000000000873;-1", "pipelineSource" : "/var/lib/mysql", "version" : "Tungsten Clustering 7.0.0 build 7" }, "dataserver" : { "state" : "OFFLINE" }, "connections" : { "active" : 12345, "created" : 12345 } } ], "error" : true, "errorText" : "..." }