telemetry 1.4.2 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc5f972939c15aa5c20b380ac946166da1c2d9b1
4
- data.tar.gz: 9dc068056020d2f62a306d595102cf7daa91482e
3
+ metadata.gz: aca95d7fc148b2831626ae95bdb8db36595e84cc
4
+ data.tar.gz: ad3db34ed8b2a393c663049ca068cf92f357f4fa
5
5
  SHA512:
6
- metadata.gz: aff4a16c576192e2423542e8fc129ba890e5294d25b88e3ec3c62615badd289dbcb701cf46ee433879204614194211af73442bcc8b0bf3b49ccdc0fc50098767
7
- data.tar.gz: f40ae91638418ad1ec09f9d664d8c2d9b80d0dc7097979f243af7a483ccd842f7311349f3824825d6286c1c21bc01f51641d2667b7dcbef833dd71372d105ce2
6
+ metadata.gz: 5b5b5993a6a490dcd22fd846479bd4c22a8de4e488a1e689e1f558abe6d3aa46e1d51c6fc63cadf48aea0686dbe6dbafa57ceaecb4745d51841e3fa3560d4bef
7
+ data.tar.gz: 2513776de8de493c59a68a9d7a82f4d6329b812fe51e9bd4f9e761e49134bf453dbfcae709d25590e808a98dbf3638a24a1dd20d075544d7523521e2ab690079
data/lib/telemetry/api.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #/usr/bin/env ruby
2
2
 
3
3
  require 'multi_json'
4
- require 'oj'
5
4
  require 'net/http/persistent'
6
5
  require 'uri'
7
6
  require 'logger'
@@ -217,7 +216,7 @@ module Telemetry
217
216
  Telemetry::logger.debug "204 OK"
218
217
  return "No Body"
219
218
  when "400"
220
- error = "HTTP 400: Request error"
219
+ error = "HTTP 400: Request error "
221
220
  Telemetry::logger.error error
222
221
  raise Telemetry::FormatError, error
223
222
  when "401"
@@ -3,7 +3,6 @@
3
3
  require 'hashie'
4
4
  require 'gibberish'
5
5
  require 'multi_json'
6
- require 'oj'
7
6
 
8
7
  module TelemetryFlows
9
8
  def emit
@@ -213,9 +212,13 @@ module Telemetry
213
212
  property :priority
214
213
  property :icon
215
214
  property :link
216
- property :tag, :required => true
217
- property :map_type, :required => true
218
- property :points, :default => []
215
+ property :type
216
+ property :mapbox_id
217
+ property :coordinates, :required => true
218
+ property :markers
219
+ property :polylines
220
+ property :polygons
221
+ property :circles
219
222
  end
220
223
 
221
224
  # Multigauge
@@ -1,3 +1,3 @@
1
1
  module Telemetry
2
- TELEMETRY_VERSION = "1.4.2"
2
+ TELEMETRY_VERSION = "1.4.4"
3
3
  end
data/spec/flows_spec.rb CHANGED
@@ -3,6 +3,7 @@ require 'spec_helper'
3
3
  describe "Flows" do
4
4
  before(:all) do
5
5
  Telemetry.token = "test-api-token"
6
+ Telemetry.logger.level = Logger::DEBUG
6
7
  end
7
8
 
8
9
  it "should update a Barchart", flows: true do
@@ -130,9 +131,10 @@ describe "Flows" do
130
131
  it "should update a Timeseries" do
131
132
  properties = {
132
133
  tag: "test-flow-timeseries",
133
- value: 33,
134
- aggregation: "average",
135
- interval: "seconds"
134
+ values: [33],
135
+ interval: "seconds",
136
+ interval_count: 60,
137
+ series_metadata: [{aggregation: "avg"}]
136
138
  }
137
139
  Telemetry::Timeseries.new(properties).emit
138
140
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - W. Gersham Meharg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json