Created
December 3, 2012 19:43
-
-
Save drewkerrigan/4197417 to your computer and use it in GitHub Desktop.
usage metrics notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basho-ninja:mhealth dkerrigan$ RACK_ENV=local ; ./console | |
1.9.3p194 :001 > a = Application.find("api-tester-client") | |
=> <Application:api-tester-client flags={} created_at=2012-11-30 16:39:40 UTC app_type="client" app_status="prod" scope_permissions="public" connected_apps=0 total_users=0 has_icon=false name="api-tester-client" display_name="API Tester Client" developer_id="FEwZgNI4VTJSIZxSas0QpOCCXjn" description="Qui corporis labore enim voluptatem non numquam ducimus maiores." compliance="fda" url_callback="http://localhost" default_access_type="read" consumer_id="VuLWp8shXiLxh7Tn7hSf" consumer_secret="046IpUI5KhZ2m1QQllWrx9AbrVIhtXVGQyEM18Ec" updated_at=2012-11-30 16:39:40 UTC url_website=nil organization=nil url_support=nil url_subscription=nil> | |
1.9.3p194 :002 > a.metrics_totals | |
=> {:storage_used=>6266.0, :api_usage=>14919.0, :api_calls=>40, :third_party_api_calls=>4714.0} | |
1.9.3p194 :003 > a.metrics_details("20121115","20121215") | |
=> {:storage_used=>{"20121115"=>0.0, "20121116"=>0.0, "20121117"=>0.0, "20121118"=>0.0, "20121119"=>0.0, "20121120"=>0.0, "20121121"=>0.0, "20121122"=>0.0, "20121123"=>0.0, "20121124"=>0.0, "20121125"=>0.0, "20121126"=>0.0, "20121127"=>0.0, "20121128"=>0.0, "20121129"=>0.0, "20121130"=>5198.0, "20121201"=>0.0, "20121202"=>0.0, "20121203"=>1068.0, "20121204"=>0.0, "20121205"=>0.0, "20121206"=>0.0, "20121207"=>0.0, "20121208"=>0.0, "20121209"=>0.0, "20121210"=>0.0, "20121211"=>0.0, "20121212"=>0.0, "20121213"=>0.0, "20121214"=>0.0, "20121215"=>0.0}, :api_usage=>{"20121115"=>0.0, "20121116"=>0.0, "20121117"=>0.0, "20121118"=>0.0, "20121119"=>0.0, "20121120"=>0.0, "20121121"=>0.0, "20121122"=>0.0, "20121123"=>0.0, "20121124"=>0.0, "20121125"=>0.0, "20121126"=>0.0, "20121127"=>0.0, "20121128"=>0.0, "20121129"=>0.0, "20121130"=>5198.0, "20121201"=>0.0, "20121202"=>0.0, "20121203"=>1068.0, "20121204"=>0.0, "20121205"=>0.0, "20121206"=>0.0, "20121207"=>0.0, "20121208"=>0.0, "20121209"=>0.0, "20121210"=>0.0, "20121211"=>0.0, "20121212"=>0.0, "20121213"=>0.0, "20121214"=>0.0, "20121215"=>0.0}, :api_calls=>{"20121115"=>0.0, "20121116"=>0.0, "20121117"=>0.0, "20121118"=>0.0, "20121119"=>0.0, "20121120"=>0.0, "20121121"=>0.0, "20121122"=>0.0, "20121123"=>0.0, "20121124"=>0.0, "20121125"=>0.0, "20121126"=>0.0, "20121127"=>0.0, "20121128"=>0.0, "20121129"=>0.0, "20121130"=>5198.0, "20121201"=>0.0, "20121202"=>0.0, "20121203"=>1068.0, "20121204"=>0.0, "20121205"=>0.0, "20121206"=>0.0, "20121207"=>0.0, "20121208"=>0.0, "20121209"=>0.0, "20121210"=>0.0, "20121211"=>0.0, "20121212"=>0.0, "20121213"=>0.0, "20121214"=>0.0, "20121215"=>0.0}, :third_party_api_calls=>{"20121115"=>0.0, "20121116"=>0.0, "20121117"=>0.0, "20121118"=>0.0, "20121119"=>0.0, "20121120"=>0.0, "20121121"=>0.0, "20121122"=>0.0, "20121123"=>0.0, "20121124"=>0.0, "20121125"=>0.0, "20121126"=>0.0, "20121127"=>0.0, "20121128"=>0.0, "20121129"=>0.0, "20121130"=>5198.0, "20121201"=>0.0, "20121202"=>0.0, "20121203"=>1068.0, "20121204"=>0.0, "20121205"=>0.0, "20121206"=>0.0, "20121207"=>0.0, "20121208"=>0.0, "20121209"=>0.0, "20121210"=>0.0, "20121211"=>0.0, "20121212"=>0.0, "20121213"=>0.0, "20121214"=>0.0, "20121215"=>0.0}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment