[libvirt] [RFC][scale] new API for querying domains stats
Eric Blake
eblake at redhat.com
Tue Aug 5 15:01:02 UTC 2014
On 08/04/2014 11:46 PM, Li Wei wrote:
>>
>> How about the following API:
>>
>> int virConnectGetAllBlockStats(virConnectPtr conn,
>> virDomainPtr domain,
>> virDomainBlockBulkStatsPtr *stats,
>> unsigned int flags);
>> @conn: pointer to libvirt connection
>> @domain: pointer to the domain to be queried, NULL for all domains
>> @stats: array of virDomainBlockBulkStats struct(see below) to be populated
>> @flags: filter flags
>
> Because block stats only valid for active domains, may be this filter flag
> can be remove.
No, keep the flag. It is still useful to filter on at least transient
vs. persistent.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140805/e82a201f/attachment-0001.sig>
More information about the libvir-list
mailing list