DOKK / manpages / debian 12 / libvm-ec2-perl / VM::EC2::REST::monitoring.3pm.en
VM::EC2::REST::monitoring(3pm) User Contributed Perl Documentation VM::EC2::REST::monitoring(3pm)

 use VM::EC2 ':misc';

These methods enable the monitoring/unmonitoring of instances.

@monitoring_state = $ec2->monitor_instances(@list_of_instanceIds)

@monitoring_state = $ec2->monitor_instances(-instance_id=>\@instanceIds)

This method enables monitoring for the listed instances and returns a list of VM::EC2::Instance::MonitoringState objects. You can later use these objects to activate and inactivate monitoring.

@monitoring_state = $ec2->unmonitor_instances(@list_of_instanceIds)

@monitoring_state = $ec2->unmonitor_instances(-instance_id=>\@instanceIds)

This method disables monitoring for the listed instances and returns a list of VM::EC2::Instance::MonitoringState objects. You can later use these objects to activate and inactivate monitoring.

VM::EC2

Lincoln Stein <lincoln.stein@gmail.com>.

Copyright (c) 2011 Ontario Institute for Cancer Research

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.

2022-10-14 perl v5.34.0