README.md in drill-sergeant-0.1.2 vs README.md in drill-sergeant-0.1.3

- old
+ new

@@ -1,18 +1,21 @@ # Drill Sergeant Ruby client for Apache Drill +[![Build Status](https://travis-ci.org/ankane/drill-sergeant.svg?branch=master)](https://travis-ci.org/ankane/drill-sergeant) + ## Installation -First, [download Apache Drill](https://drill.apache.org/docs/installing-drill-on-linux-and-mac-os-x/). Start it with: +First, [install Apache Drill](https://drill.apache.org/docs/installing-drill-on-linux-and-mac-os-x/). For Homebrew, use: ```sh -bin/drill-embedded +brew install apache-drill +drill-embedded ``` -Then add this line to your application’s Gemfile: +And add this line to your application’s Gemfile: ```ruby gem 'drill-sergeant' ``` @@ -26,9 +29,55 @@ And query away ```ruby drill.query("SELECT * FROM dfs.`/path/to/some/file.csvh`") +``` + +## Endpoints + +[API docs](https://drill.apache.org/docs/rest-api-introduction/) + +Get profiles + +```ruby +drill.profiles +``` + +Get profile by query id + +```ruby +drill.profiles(query_id) +``` + +Get storage + +```ruby +drill.storage +``` + +Get storage by name + +```ruby +drill.storage(name) +``` + +Get cluster info + +```ruby +drill.cluster +``` + +Get metrics + +```ruby +drill.metrics +``` + +Get options + +```ruby +drill.options ``` ## Reference Set timeouts