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 +4 -4
- data/lib/telemetry/api.rb +1 -2
- data/lib/telemetry/flows.rb +7 -4
- data/lib/telemetry/version.rb +1 -1
- data/spec/flows_spec.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aca95d7fc148b2831626ae95bdb8db36595e84cc
|
4
|
+
data.tar.gz: ad3db34ed8b2a393c663049ca068cf92f357f4fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
data/lib/telemetry/flows.rb
CHANGED
@@ -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 :
|
217
|
-
property :
|
218
|
-
property :
|
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
|
data/lib/telemetry/version.rb
CHANGED
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
|
-
|
134
|
-
|
135
|
-
|
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.
|
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-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|