Updated the description of get_counters routine.

Modified the second counter description of
get_counters.

Fixes: bug 1156814

Change-Id: Ie7d4d3d93f853598069d8676f6be4335ddd3afb9
This commit is contained in:
Jason Zhang 2013-03-18 17:55:09 -07:00
parent 4abb407152
commit 320b77d3b2

View File

@ -77,10 +77,8 @@ from the hypervisor and sends back two ``Counter`` objects. The first one, name
"cpu", is of type "cumulative", meaning that between two polls, its value is
not reset, or in other word that the cpu value is always provided as a duration
that continuously increases since the creation of the instance. The second one,
named "instance", is of type "cumulative", meaning that it's value is just the
volume since the last poll. Here, the instance counter is only used as a way
to tell the system that the instance is still running, hence the hard coded
value of 1.
named "cpu_util", is of type "gauge", meaning that its value is the percentage
of cpu utilization.
Note that the ``LOG`` method is only used as a debugging tool and does not
participate in the actual metering activity.