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

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

πŸ’– VM::EC2::Spot::PriceHistory β€” the vibe ✨

okay bestie, listen up, this is VM::EC...History(3pm) and it's literally a whole little object that holds one (1) Amazon EC2 spot instance price history record. she's small, she's iconic, she knows exactly what she is πŸŽ€


🌸 NAME 🌸

VM::EC2::Spot::PriceHistory β€” the object that describes a single Amazon EC2 spot instance price history record. that's it, that's the girl πŸ’…


✨ SYNOPSIS ✨

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

use VM::EC2;

$ec2     = VM::EC2->new(...);

my @history = $ec2->describe_spot_price_history(-start_time => '2011-09-01T00:00:00',
                                                -end_time   => '2011-09-05T00:00:00',
                                                -availability_zone => 'us-east-1a',
                                                -instance_type   => 'm1.small',
                                                -filter     => {'product-description'=>'*Linux*'},
                                              } or die $ec2->error_str;
for my $h (@history) {
  print join("\t",$h->timestamp,
                  $h->spot_price,
                  $h->instanceType,
                  $h->productDescription,
                  $h->availability_zone),"\n";
}
yes the } on that filter line is exactly like that in the original, i am NOT touching her, she's doing her best 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this object represents an Amazon EC2 spot instance price history record. and where do you get one? she gets handed to you by VM::EC2->describe_spot_price_history(). that's the plug. that's the source. go get her πŸ’–


πŸ‘‘ METHODS πŸ‘‘

these object methods are supported, and yes they all ate:

  • instanceType β€” the instance type, like for example 'm1.small'. the classic.
  • productDescription β€” the product description, like for example "windows".
  • spotPrice β€” the price, in dollars per run-hour. the money number fr fr πŸ’Έ
  • timestamp β€” the timestamp of the data point, and she comes in the format yyyy-mm-ddThh:mm:ss.000Z. memorize it, iykyk.
  • availabilityZone β€” the availability zone of the spot instance. where she lives 🏠

🌈 SEE ALSO 🌈

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

go read those too bestie, they're the friend group 🫢


πŸ’œ AUTHOR πŸ’œ

Lincoln Stein <lincoln.stein@gmail.com>. wrote her, we stan.

Copyright (c) 2011 Ontario Institute for Cancer Research

okay so the legal bit, and this matters, so read it for real: 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. and in addition, please see DISCLAIMER.txt for disclaimers of warranty. no warranty bestie, read the fine print 😭


and that's the whole page!! mwah πŸ’…βœ¨

sign-off: this was perl v5.38.2, dated 2024-08-10, and it's the VM::EC...History(3pm) page β€” love her, bye πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from