6.201. 통계
이름 | 요약 |
---|---|
| 통계 목록을 검색합니다. |
6.201.1. GET나열
통계 목록을 검색합니다.
예를 들어 가상 머신 123
에 대한 통계를 검색하려면 다음과 같은 요청을 보냅니다.
GET /ovirt-engine/api/vms/123/statistics
결과는 다음과 같습니다.
<statistics> <statistic href="/ovirt-engine/api/vms/123/statistics/456" id="456"> <name>memory.installed</name> <description>Total memory configured</description> <kind>gauge</kind> <type>integer</type> <unit>bytes</unit> <values> <value> <datum>1073741824</datum> </value> </values> <vm href="/ovirt-engine/api/vms/123" id="123"/> </statistic> ... </statistics>
URI 끝에 ID를 지정하면 통계의 단일 부분만 검색할 수 있습니다. 즉, 다음을 의미합니다.
GET /ovirt-engine/api/vms/123/statistics/456
출력:
<statistic href="/ovirt-engine/api/vms/123/statistics/456" id="456"> <name>memory.installed</name> <description>Total memory configured</description> <kind>gauge</kind> <type>integer</type> <unit>bytes</unit> <values> <value> <datum>1073741824</datum> </value> </values> <vm href="/ovirt-engine/api/vms/123" id="123"/> </statistic>
반환된 통계 목록의 순서는 보장되지 않습니다.
이름 | 유형 | 방향 | 요약 |
---|---|---|---|
| in | 따라야 할 내부 링크를 나타냅니다. | |
| in | 반환할 최대 통계 수를 설정합니다. | |
| 통계 [] | Out |
6.201.1.1. 팔로우
따라야 할 내부 링크를 나타냅니다. 이러한 링크에서 참조하는 오브젝트는 현재 요청의 일부로 가져옵니다. 자세한 내용은 여기를 참조하십시오.
6.201.1.2. max
반환할 최대 통계 수를 설정합니다. 지정하지 않으면 모든 통계가 반환됩니다.