VM::EC...:Status(3pm)
β¨ NAME β¨
VM::EC2::Instance::Status β the object that describes an instance/system status check π©Ίπ
That's literally it, that's its whole job. It shows up in your life when you go asking AWS how an instance is doing, and it comes back holding the receipts.
(Also hi, this page is filed under VM::EC...:Status(3pm) because the header went and truncated the name like a coward π not my doing.)
π¦ SYNOPSIS π¦
@status_items = $ec2->describe_instance_status();
for my $i (@status_items) {
print $i->instance_id,
': instance check=',$i->instance_status,
', system check=',$i->system_status,"\n";
if ($i->instance_status ne 'ok') {
print $i->instance_status->details,"\n";
}
}
okay so you grab all the status items, loop through them, print the instance_id plus the instance check and the system check, and if the instance check is not 'ok' you go digging into the details. iconic little loop tbh π
πΈ DESCRIPTION πΈ
This object represents the result of a system or instance status check operation. That's the vibe. It's the little container that holds what came back when you asked. No cap, no extra lore π
π METHODS π
Here's what it can do for you, bestie:
status()β the status, and it's one of"ok","impaired","insufficient-data", or"not-applicable". Four possible moods, pick your fighter β¨details()β a list of information about system instance health or application instance health. The tea β
Also, super important: in a string context, this object interpolates with the status string. So you can just drop it into a string and it'll show up as the status. lowkey elegant π
π SEE ALSO π
VM::EC2VM::EC2::GenericVM::EC2::StateVM::EC2::InstanceVM::EC2::Instance::StatusItemVM::EC2::Tag
the whole friend group π«Ά go say hi
π AUTHOR π
Lincoln Stein <lincoln.stein@gmail.com> β yes that's a real email, put it in your contacts, not that kind of contact, the citation kind π
Copyright (c) 2012 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. So yes, free, but read the fine print, it's giving responsible queen energy π
and that's the page, babe π this wasperl v5.38.2, dated2024-08-10, filed underVM::EC...:Status(3pm)β go forth and check your statuses, you're gonna slay π₯π
π¦ where this page comes from
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms