MXS-1220: Unify resource member naming
All resoures now use the `state` member to describe their internal state. This includes servers, services and monitors. This means that the `status` keyword can be reserved for something else and it can be removed until it is needed again. Changed the module maturity field to `maturity` to better describe its purpose.
This commit is contained in:
@ -24,7 +24,7 @@ exports.builder = function(yargs) {
|
||||
{'Address': 'attributes.parameters.address'},
|
||||
{'Port': 'attributes.parameters.port'},
|
||||
{'Connections': 'attributes.statistics.connections'},
|
||||
{'Status': 'attributes.status'}
|
||||
{'State': 'attributes.state'}
|
||||
])
|
||||
})
|
||||
.command('services', 'List services', {}, function() {
|
||||
@ -39,7 +39,7 @@ exports.builder = function(yargs) {
|
||||
.command('monitors', 'List monitors', {}, function() {
|
||||
getCollection('monitors', [
|
||||
{'Monitor': 'id'},
|
||||
{'Status': 'attributes.state'},
|
||||
{'State': 'attributes.state'},
|
||||
{'Servers': 'relationships.servers.data[].id'}
|
||||
])
|
||||
})
|
||||
|
Reference in New Issue
Block a user