VM::EC...History(3pm)
π 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 formatyyyy-mm-ddThh:mm:ss.000Z. memorize it, iykyk.availabilityZoneβ the availability zone of the spot instance. where she lives π
π SEE ALSO π
VM::EC2VM::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
- 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