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

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

πŸ’– VM::EC2::Instance::Status::Details β€” bestie edition πŸ’–

okay so real talk, this page is from the User Contributed Perl Documentation crew, and it's all about VM::EC2::Instance::Status::Details, aka the little object that spills the tea on what exactly went wrong with your instance status check πŸ«–βœ¨


🌸 NAME 🌸

VM::EC2::Instance::Status::Details β€” an object describing the details of an instance status check πŸ’…


✨ SYNOPSIS ✨

no cap, here's how you actually use it:

@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') {
     my @details = $i->instance_status->details;
     for my $d (@details) {
           print $d->name,"\n";
           print $d->status,"\n";
           print $d->impaired_since,"\n";
     }
  }
}

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this object is the receipts 🧾 β€” it represents the extra deets about a failed system or instance status check. it's giving "here's exactly what's wrong and when it started going wrong."


πŸ‘‘ METHODS πŸ‘‘

these methods are supported, and they ate:

  • name() β€” the type of instance status detail, like "reachability". πŸ’€ (yes, reachability, iconic)
  • status() β€” the status of the check: "passed", "failed", or "insufficient-data". three moods, pick one.
  • impaired_since() β€” the time when a status check failed, as a DateTime string. ⏰ lowkey the most important one ngl.

also! in a string context, this object interpolates as the name(). so if you just shove it in a string, it's gonna show up as its name. cute, right? πŸŽ€


🌈 SEE ALSO 🌈

go read these too, bestie, they're all part of the same friend group:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::Instance
  • VM::EC2::Instance::State
  • VM::EC2::Instance::StatusItem
  • VM::EC2::Instance::Status
  • VM::EC2::Instance::Status::Event
  • VM::EC2::Tag

πŸ’œ AUTHOR πŸ’œ

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

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.

fr fr, go read LICENSE and DISCLAIMER.txt β€” the legal girlies deserve their moment too. no skipping. πŸ’…

and that's the whole page, bestie!! πŸŽ€βœ¨ this was perl v5.38.2, dated 2024-08-10, and it's part of the VM::EC2... docs family β€” stay hydrated, read your manpages, and may all your status checks be ok πŸ’–πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from