<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
On 10/09/2012 08:19 PM, Alex Leonhardt wrote:
<blockquote cite="mid:507478D7.5010804@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<br>
<br>
On 10/09/2012 07:21 AM, Yaniv Kaul wrote:
<blockquote cite="mid:5073C253.7090509@redhat.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 10/09/2012 12:15 AM, Alex
Leonhardt wrote:<br>
</div>
<blockquote cite="mid:50735095.7080107@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<br>
<br>
On 10/08/2012 10:26 PM, Yaniv Kaul wrote:
<blockquote cite="mid:507344FD.4030106@redhat.com" type="cite">
<div class="moz-cite-prefix">On 10/08/2012 11:17 PM, Alex
Leonhardt wrote:<br>
</div>
<blockquote cite="mid:507342D6.7040708@gmail.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<font size="-1"><font face="Tahoma">Aha - cool - thanks!
:) <br>
<br>
Now, I was also looking at the REST API - is there a
simple shell based way to read / query the resulting
XML ? Or would you suggest to write python scripts to
e.g. start/stop instance, get a list of VMs / their
IDs, etc. ? <br>
</font></font></blockquote>
<br>
If you are already planning on Python, why not use the SDK
instead of doing REST?<br>
some examples @
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="http://wiki.ovirt.org/wiki/Testing/PythonApi">http://wiki.ovirt.org/wiki/Testing/PythonApi</a><br>
Y.<br>
<br>
</blockquote>
Hi Yaniv,<br>
<br>
thanks - had a quick look - is the PyAPI able to get the
current usage of the VMs (e.g. Memory/CPU/etc. usage) - it's
the main reason (for monitoring & trending) that I need
this .. <br>
<br>
Thanks!<br>
Alex<br>
<br>
</blockquote>
<br>
It does. The SDK is auto-generated from the REST interface so
you can get the statistics sub-collection and use it.<br>
Y.<br>
</blockquote>
<br>
Awesome - thanks! :) <br>
<br>
Alex<br>
<br>
</blockquote>
<br>
<font size="-1"><font face="Tahoma">Hi Yaniv,<br>
<br>
Is there a document / wiki article that has examples to get
those metrics for e.g. ram usage, cpu usage, etc. ? <br>
<br>
Thanks!<br>
Alex<br>
<br>
<br>
</font></font>
</body>
</html>