mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 12:35:19 +00:00
bin: ch-remote: Implement "counters" command
This is used to obtain the counters from the VM. The raw JSON data is presented to the user. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
bca8a19244
commit
9b7afd4aac
@ -337,6 +337,7 @@ fn do_command(matches: &ArgMatches) -> Result<(), Error> {
|
||||
|
||||
match matches.subcommand_name() {
|
||||
Some("info") => simple_api_command(&mut socket, "GET", "info", None),
|
||||
Some("counters") => simple_api_command(&mut socket, "GET", "counters", None),
|
||||
Some("resize") => resize_api_command(
|
||||
&mut socket,
|
||||
matches
|
||||
@ -498,6 +499,7 @@ fn main() {
|
||||
.arg(Arg::with_name("id").index(1).help("<device_id>")),
|
||||
)
|
||||
.subcommand(SubCommand::with_name("info").about("Info on the VM"))
|
||||
.subcommand(SubCommand::with_name("counters").about("Counters from the VM"))
|
||||
.subcommand(SubCommand::with_name("pause").about("Pause the VM"))
|
||||
.subcommand(SubCommand::with_name("reboot").about("Reboot the VM"))
|
||||
.subcommand(
|
||||
|
Loading…
x
Reference in New Issue
Block a user