VM::EC2::Spot::PriceHistory3pm
Object describing an amazon ec2 spot instance price history record
Usage
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";}
Overview
This object represents an Amazon EC2 spot instance price history record, and is returned by VM::EC2->describe_spot_price_history().
Methods
These object methods are supported:
instanceType -- Instance type, e.g. 'm1.small'productDescription -- Product description, e.g. "windows"spotPrice -- Price, in dollars per run-hour.timestamp -- Timestamp of data point, in format yyyy-mm-ddThh:mm:ss.000ZavailabilityZone -- Availability zone of spot instance.
Releases
6 releases since Debian 8 (Jessie); the text changed 3 times.