Package starcluster :: Package commands :: Module spothistory :: Class CmdSpotHistory
[hide private]
[frames] | no frames]

Class CmdSpotHistory

source code



spothistory [options] <instance_type>

Show spot instance pricing history stats (last 30 days by default)

Examples:

Show the current, max, and average spot price for m1.small instance type:

    $ starcluster spothistory m1.small

Do the same but also plot the spot history over time using matplotlib:

    $ starcluster spothistory -p m1.small

Instance Methods [hide private]
 
addopts(self, parser) source code
 
execute(self, args) source code

Inherited from base.CmdBase: cancel_command, catch_ctrl_c, warn_experimental

Inherited from base.CmdBase (private): _positive_int

Inherited from optcomplete.CmdComplete: autocomplete

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  names = ['spothistory', 'shi']

Inherited from base.CmdBase: gopts, gparser, opts, parser, subcmds_map

Inherited from base.CmdBase (private): _cfg, _cm, _ec2, _nm, _s3

Properties [hide private]

Inherited from base.CmdBase: cfg, cluster_manager, cm, comp_words, ec2, goptions_dict, log, nm, node_manager, options_dict, s3, specified_options_dict

Inherited from object: __class__

Method Details [hide private]

addopts(self, parser)

source code 
Overrides: base.CmdBase.addopts