Adds granularity param spec to {host,vm}.stats().
This commit is contained in:
parent
6fbfece4ff
commit
9af86cbba2
@ -291,7 +291,11 @@ stats = $coroutine ({host, granularity}) ->
|
||||
stats.description = 'returns statistic of the host'
|
||||
|
||||
stats.params = {
|
||||
host: { type: 'string' }
|
||||
host: { type: 'string' },
|
||||
granularity: {
|
||||
type: 'string',
|
||||
optional: true
|
||||
}
|
||||
}
|
||||
|
||||
stats.resolve = {
|
||||
|
@ -780,8 +780,14 @@ stats = $coroutine ({vm, granularity}) ->
|
||||
stats = yield @getXapiVmStats(vm, granularity)
|
||||
return stats
|
||||
|
||||
stats.description = 'returns statistics about the VM'
|
||||
|
||||
stats.params = {
|
||||
id: { type: 'string' }
|
||||
id: { type: 'string' },
|
||||
granularity: {
|
||||
type: 'string',
|
||||
optional: true
|
||||
}
|
||||
}
|
||||
|
||||
stats.resolve = {
|
||||
|
Loading…
Reference in New Issue
Block a user