1VM::EC2::Instance::MoniUtsoerrinCgoSnttartieb(u3t)ed PerVlM:D:oEcCu2m:e:nItnasttiaonnce::MonitoringState(3)
2
3
4

NAME

6       VM::EC2::MonitoringState - Object describing the monitoring state of an
7       EC2 instance
8

SYNOPSIS

10         use VM::EC2;
11
12         $ec2        = VM::EC2->new(...);
13         $monitor    = $ec2->monitor_instances('i-12345');
14         $instance   = $monitor->instanceId;
15         $monitoring = $monitor->monitoring;
16
17         $monitor->enable;
18         $monitor->disable;
19

DESCRIPTION

21       This object represents the monitoring state of an Amazon EC2 instance.
22

METHODS

24       These object methods are supported:
25
26        instanceId       -- The instance that is being reported
27        monitoring       -- The monitoring state: one of "disabled", "enabled", "pending"
28
29       To turn monitoring of an instance on, call:
30
31        $monitor->enable();
32
33       to unmonitor an instance, call:
34
35        $monitor>disable();
36
37       It is probably easier to control this using the Instance object's
38       monitoring() method.
39

STRING OVERLOADING

41       When used in a string context, this object will interpolate the string
42       "$instanceId monitoring is $monitoring".
43

SEE ALSO

45       VM::EC2 VM::EC2::Generic VM::EC2::Instance
46

AUTHOR

48       Lincoln Stein <lincoln.stein@gmail.com>.
49
50       Copyright (c) 2011 Ontario Institute for Cancer Research
51
52       This package and its accompanying libraries is free software; you can
53       redistribute it and/or modify it under the terms of the GPL (either
54       version 1, or at your option, any later version) or the Artistic
55       License 2.0.  Refer to LICENSE for the full license text. In addition,
56       please see DISCLAIMER.txt for disclaimers of warranty.
57
58
59
60perl v5.32.0                      2020-07-V2M8::EC2::Instance::MonitoringState(3)
Impressum