Coder Social home page Coder Social logo

mavjr0313 / rolltools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jslate/rolltools

0.0 1.0 0.0 7 KB

Just a simple gem that gives you ruby methods and command line tools to display info from the Rollbar API.

License: MIT License

Ruby 100.00%

rolltools's Introduction

Rolltools

Just a simple gem that gives you ruby methods and command line tools to display info from the Rollbar API.

Installation

$ gem install rolltools

Or in your Gemfile:

gem 'rolltools'

Usage - Command Line

Run 'rolltools' to get a list of commands.

Typical usage from command line:

rolltools set_config read_token abc123... # will set token in ~/.rolltools.yml

rolltools user_agents 2269 -l 2 # user agents for #2269 TypeError: no implicit conversion of nil into String, limit 2

> Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
> Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

rolltools exceptions 2269 -l 2 # Exception messages for #2269, limit 2

> TypeError no implicit conversion of nil into String
> TypeError no implicit conversion of nil into String

The default limit is 20, which is one page of items. If you specify a limit > 20 it will result in more requests to Rollbar.

Usage - Ruby

require 'rolltools'

Rolltools::Settings.settings = { 'read_token' => 'abc123'}
puts Rolltools::Utils.get_items('3002').first(10).map{|i|i[:user_agent]}.inspect

Similarly, if you get > 20 items it will result in more requests to Rollbar.

Contributing

  1. Fork it ( http://github.com/jslate/rolltools/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

rolltools's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.