Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building Multi-Tenant Applications With Riak CS

Building Multi-Tenant Applications With Riak CS

Christopher Meiklejohn

November 20, 2012
Tweet

More Decks by Christopher Meiklejohn

Other Decks in Programming

Transcript

  1. GET s3://usage/KeyId/Options/Start/End GET s3://usage/KeyId.Options.Start.End Options = aj | ax Start

    = ISO8601 End = ISO8601 GET s3://usage/8NK4FH2SGKJJM8JIP2GU/aj/ 20120315T140000Z/20120315T160000Z Tuesday, November 20, 12
  2. @client = Fog::RiakCS::Provisioning.new( :riakcs_access_key_id => RIAK_CS_ADMIN_KEY, :riakcs_secret_access_key => RIAK_CS_ADMIN_SECRET, :host

    => RIAK_CS_HOST, :port => RIAK_CS_PORT, :scheme => RIAK_CS_SCHEME ) Tuesday, November 20, 12
  3. @client = Fog::RiakCS::Usage.new( :riakcs_access_key_id => RIAK_CS_ADMIN_KEY, :riakcs_secret_access_key => RIAK_CS_ADMIN_SECRET, :host

    => RIAK_CS_HOST, :port => RIAK_CS_PORT, :scheme => RIAK_CS_SCHEME ) Tuesday, November 20, 12
  4. @client.get_usage( key_id, :format => :json :types => [:access, :storage], :start_time

    => start_time, :end_time => end_time ) Tuesday, November 20, 12