2.15.
CLASS: HOST METRICS
CHAPTER 2.
API REFERENCE
2.15
Class: host metrics
2.15.1
Fields for class: host metrics
Name
host metrics
Description
The metrics associated with a host.
Quals
Field
Type
Description
RO
run
uuid
string
unique identifier/object reference
RO
run
memory/total
int
Host’s total memory (bytes)
RO
run
memory/free
int
Host’s free memory (bytes)
RO
run
live
bool
Pool master thinks this host is live
RO
run
last updated
datetime
Time at which this information was
last updated
2.15.2
RPCs associated with class: host metrics
RPC name: get all
Overview:
Return a list of all the host metrics instances known to the system.
Signature:
((host_metrics ref) Set) get_all (session_id s)
Return Type:
(host metrics ref) Set
references to all objects
RPC name: get all records
Overview:
Return a map of host metrics references to host metrics records for all host metrics instances
known to the system.
Signature:
((host_metrics ref -> host_metrics record) Map) get_all_records (session_id s)
Return Type:
(host metrics ref
→
host metrics record) Map
records of all objects
RPC name: get uuid
Overview:
Get the uuid field of the given host metrics.
Signature:
string get_uuid (session_id s, host_metrics ref self)
Arguments:
type
name
description
host metrics ref
self
reference to the object
145