librato / librato-metrics

Ruby wrapper to make it easy to interact with Librato's API.
https://librato.com
Other
108 stars 51 forks source link

initial setup for working with charts and spaces #140

Closed themoffatt closed 6 years ago

themoffatt commented 6 years ago

Adds functionality for fetching space id by name, and saving a new chart.

Space.all
Space.find(id)
Space.find_by_name('Test Space')

Chart.new(
  space_id: 0,
  type: 'line',
  name: 'test',
  streams:[{ "metric": "librato.chart.creation.spec" }]
).save