Skip to content

Commit

Permalink
vm.monitoring, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Jun 30, 2015
1 parent d66c204 commit 74acb93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lib/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ VM.prototype.info = function(callback) {
});
};

VM.prototype.monitoring = function(callback) {
this.modem.call('vm.monitoring', [this.id], function(err, data) {
if (err) return callback(err);
callback(null, data);
});
};

VM.prototype.action = function(action, callback) {
this.modem.call('vm.action', [action, this.id], function(err, data) {
if (err) return callback(err);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opennebula",
"description": "OpenNebula XML-RPC API client.",
"version": "1.0.6",
"version": "1.0.7",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion test/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("#vm", function() {
it("should create a vm", function(done) {
this.timeout(5000);

one.createVM('GRAPHICS=[TYPE="vnc",LISTEN="0.0.0.0"]\nMEMORY="1024"\n FROM_APP="53e767ba8fb81d6a69000001"\nVCPU="1"\nFROM_APP_NAME="CentOS 6.5 - KVM"\nOS=[ARCH="x86_64"]\n NIC=[NETWORK="private"]\nLOGO="images/logos/centos.png"\nCPU="0.5"\n DISK=[IMAGE="CentOS-6.5-one-4.8",IMAGE_UNAME="oneadmin"]\n', false, function(err, vm) {
one.createVM('GRAPHICS=[TYPE="vnc",LISTEN="0.0.0.0"]\nMEMORY="512"\nVCPU="1"\nOS=[ARCH="x86_64"]\n NIC=[NETWORK="cloud"]\nCPU="0.5"\n DISK=[IMAGE="ttylinux",IMAGE_UNAME="oneadmin"]\n', false, function(err, vm) {
expect(err).to.be.null;
expect(vm).to.be.ok;

Expand Down

0 comments on commit 74acb93

Please sign in to comment.