Adds granularity param spec to {host,vm}.stats().

This commit is contained in:
Julien Fontanet 2015-10-28 14:35:00 +01:00
parent 6fbfece4ff
commit 9af86cbba2
2 changed files with 12 additions and 2 deletions

View File

@ -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 = {

View File

@ -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 = {