VM::EC...gState(3pm)

πŸ“¦
version 1.28 Β· 7 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

VM::EC2::MonitoringState β€” the little object that tells you all about the monitoring state of an EC2 instance. bestie, that's it, that's the whole job πŸŽ€


✨ SYNOPSIS ✨

use VM::EC2;

$ec2        = VM::EC2->new(...);
$monitor    = $ec2->monitor_instances('i-12345');
$instance   = $monitor->instanceId;
$monitoring = $monitor->monitoring;

$monitor->enable;
$monitor->disable;

like... look at her go πŸ’… so clean, so iconic.


🌸 DESCRIPTION 🌸

Okay so, this object? It represents the monitoring state of an Amazon EC2 instance. that's literally its whole personality and honestly? we respect it. no cap.


πŸ’… METHODS πŸ’…

these object methods are supported, bestie, here's the roster πŸ‘‘

  • instanceId β€” the instance that is being reported 🫢
  • monitoring β€” the monitoring state, and it's one of "disabled", "enabled", or "pending" (yes, three vibes, pick one) ✨

to turn monitoring of an instance ON, you call:

$monitor->enable();

and to unmonitor an instance, you call:

$monitor>disable();
not me typing that exactly how the original has it πŸ™ˆ β€” yes, that's a > instead of a -> in the docs, i'm not touching it, i'm just the messenger, and the messenger is obsessed with accuracy πŸŽ€

ngl, it is probably easier to control this using the Instance object's monitoring() method. just saying. main character energy is over there πŸ’–


πŸ¦‹ STRING OVERLOADING πŸ¦‹

when you use this object in a string context, it will interpolate the string:

"$instanceId monitoring is $monitoring"

it's giving "yes queen, narrate yourself" ✨ literally so convenient.


🌈 SEE ALSO 🌈

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::Instance

go read those too, bestie, the lore is deep πŸ“šπŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

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</c> 🌸 refer to LICENSE for the full license text. in addition, please see DISCLAIMER.txt for disclaimers of warranty. (yes, read the fine print, bestie, it's free but it's not a blank check 🫢)


this page is from the User Contributed Perl Documentation, and the footer says perl v5.38.2, dated 2024-08-10. slay, that's a wrap, go monitor something πŸ’…βœ¨πŸ’–
πŸ“¦ where this page comes from