Xo#getAllXenServers().

This commit is contained in:
Julien Fontanet 2016-03-02 15:23:32 +01:00
parent 2a02583e27
commit 47ed78031a
2 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,7 @@ remove.params = {
// TODO: remove this function when users are integrated to the main // TODO: remove this function when users are integrated to the main
// collection. // collection.
export async function getAll () { export async function getAll () {
const servers = await this._servers.get() const servers = await this.getAllXenServers()
for (let i = 0, n = servers.length; i < n; ++i) { for (let i = 0, n = servers.length; i < n; ++i) {
servers[i] = this.getServerPublicProperties(servers[i]) servers[i] = this.getServerPublicProperties(servers[i])

View File

@ -321,6 +321,10 @@ export default class {
return xapi return xapi
} }
getAllXenServers () {
return this._servers.get()
}
getXapiVmStats (vm, granularity) { getXapiVmStats (vm, granularity) {
const xapi = this.getXapi(vm) const xapi = this.getXapi(vm)
return this._stats.getVmPoints(xapi, vm._xapiId, granularity) return this._stats.getVmPoints(xapi, vm._xapiId, granularity)