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

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

πŸ’– VM::EC2::ELB::HealthCheck β€” the manual, but make it cute πŸ’–

okay bestie, sit down, hydrate, because we're reading a Perl manpage and honestly? it's giving load balancer lore. this one is VM::EC2::ELB:HealthCheck(3pm) from the User Contributed Perl Documentation and it's literally just the vibe check settings for your AWS load balancer's health checks. yes. the thing that decides if your instances are slaying or flopping. 🌸


✨ NAME ✨

VM::EC2::ELB::HealthCheck β€” Load Balancer Health Check Parameters

like... the whole personality of your health check, in one lil object 🫢


πŸŽ€ SYNOPSIS πŸŽ€

use VM::EC2;

$lb = $ec2->describe_load_balancers('my-lb');
my $hc                   = $lb->HealthCheck;
my $interval             = $hc->Interval;
my $target               = $hc->Target;
my $healthy_threshold    = $hc->HealthyThreshold;
my $unhealthy_threshold  = $hc->UnhealthyThreshold;
my $timeout              = $hc->Timeout;

see how clean that is?? grab the load balancer, pull its HealthCheck, and then just... read its mind through a bunch of accessors. no cap, that's the whole flow. πŸ’…


πŸ’« DESCRIPTION πŸ’«

so this object describes the parameters used to perform healthchecks on a load balancer. that's it, that's the job. it's the little config gremlin behind the scenes deciding who's healthy and who's not. 🧚

and here's the tea: generally you will not call this directly. nope! because all its methods are passed through by the VM::EC2::ELB object that you get back from the HealthCheck() call. so like, it's the main character's best friend β€” always there, does the work, doesn't need the spotlight. periodt.


πŸ”₯ METHODS πŸ”₯

the following object methods are supported, and every single one of them is a baddie:

  • Interval β€” the time interval between health checks. how often we're checking in on you, bestie ⏰
  • Target β€” the target protocol protocol and port of the check. (yes it says protocol twice in the original, we don't question the ancestors πŸ™ˆ)
  • HealthyThreshold β€” the number of successive positive health checks that need to be completed to be marked as healthy. hit this streak and you're officially that girl πŸ‘‘
  • UnhealthyThreshold β€” the number of successive negative health checks that need to be completed to be marked as unhealthy. miss this many in a row and uh... it's over πŸ’€
  • Timeout β€” the time interval of what is considered a timeout. how long we wait before we're like "okay girl, that's a no" ⏳

🌈 STRING OVERLOADING 🌈

when used in a string context, this object will interpolate object parameters as a series of Key:Value strings.

so you can just drop it in a string and it'll spill all its Key:Value secrets. iconic behaviour honestly ✨


πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, they're all connected, it's a whole cinematic universe:

  • VM::EC2
  • VM::EC2::Generic
  • VM::EC2::Snapshot
  • VM::EC2::ELB

🌸 AUTHOR 🌸

Lance Kinley <lkinley@loyaltymethods.com>.

Copyright (c) 2012 Loyalty Methods, Inc.

legal moment, bestie, pay attention: 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. 🫢

and that's the whole page!! this beauty shipped with perl v5.38.2 and is dated 2024-08-10. thank you for coming to my ted talk, go check your thresholds, mwah πŸ’œ

πŸ“¦ where this page comes from