sumologic-metrics 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: dca46e6f517d470056d4e4f303b58f8a7a172461e7f72ab5aef6d3bccf317b7a
4
- data.tar.gz: 7a64a26fafb2e8f575b326c93ae0bc1f30bd0e8de2e3d0c5da24ca96cea5e603
3
+ metadata.gz: 1b61b1171e1786fd653751bb29c1218f60c19478f22d5b0c163390d4b85b0ecd
4
+ data.tar.gz: e2828a2276fc577b24936c2eb82dd889fe22a5eebbd229b90a2fc48814001ce3
5
5
  SHA512:
6
- metadata.gz: ff4590a51201a22935e4fe64f02ac277da5f8ee59a2bf1717a5e0991311d30a8675fcdd269110b10127b10f43a9b93b063b8e3da11155b41f62e2f5b52780cf9
7
- data.tar.gz: 026860daf7ee964dbeb36787904da96577446069d95c3a2e538fd338d504fb17c1eecb99d7d44f4fd75ddef0b07d26ffbd774d591c74cca793d2e6bb0abee4e0
6
+ metadata.gz: b7788d8dbdc9b4bccf01c518dd9fd8947de9dd6dbf6dd206d5a450287d87b1b943ec49a00b461b4786c7dfd202c98a8aa62cf927668ba85c5ae2133273e27302
7
+ data.tar.gz: 7b8fa2b6604166fac2f31e032909124dcbef0eed77df56352dd52c8b5dea1c54b0ac08b7049d57c295a1843a000b7b2f82d79979ad3884ab9747ee348ec72d23
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sumologic-metrics (0.1.1)
4
+ sumologic-metrics (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,9 +2,14 @@
2
2
 
3
3
  [![Build Status](https://www.travis-ci.org/josacar/sumologic-metrics.svg?branch=master)](https://www.travis-ci.org/josacar/sumologic-metrics)
4
4
  [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics?ref=badge_shield)
5
+ [![Gem Version](https://badge.fury.io/rb/sumologic-metrics.svg)](https://badge.fury.io/rb/sumologic-metrics)
5
6
 
6
7
  Upload metrics to Sumologic!
7
8
 
9
+ ## Requirements
10
+
11
+ - At least MRI 2.5 or JRuby 9.2.0.0
12
+
8
13
  ## Installation
9
14
 
10
15
  Add this line to your application's Gemfile:
@@ -32,6 +37,23 @@ metrics = Sumologic::Metrics.new(collector_uri: url)
32
37
  metrics.push('cluster=prod node=lb-1 metric=cpu ip=2.2.3.4 team=infra 99.12 1528020619')
33
38
  ```
34
39
 
40
+ ### #push
41
+
42
+ Queues the metric to the worker ( asynchronous )
43
+
44
+ ### #queued_metrics
45
+
46
+ Returns the size of the queued items
47
+
48
+ ### #flush
49
+
50
+ Waits synchronously until the queue is empty
51
+
52
+ ## Documentation
53
+
54
+ - [Carbon 2.0](https://help.sumologic.com/Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Data-to-an-HTTP-Source) formatted metrics
55
+
56
+
35
57
  ## Development
36
58
 
37
59
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -55,4 +77,4 @@ Everyone interacting in the Sumologic::Metrics project’s codebases, issue trac
55
77
 
56
78
  ## Thanks
57
79
 
58
- - SegmentIO for their [analytics-ruby](https://github.com/segmentio/analytics-ruby) gem
80
+ - SegmentIO for their [analytics-ruby](https://github.com/segmentio/analytics-ruby) gem
@@ -1,5 +1,5 @@
1
1
  module Sumologic
2
2
  class Metrics
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.1.2'.freeze
4
4
  end
5
5
  end
@@ -23,4 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'bundler', '~> 1.16'
24
24
  spec.add_development_dependency 'rake', '~> 11.0'
25
25
  spec.add_development_dependency 'rspec', '~> 3.7'
26
+
27
+ spec.required_ruby_version = '>= 2.4.0'
26
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumologic-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Luis Salas
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: '0'
99
+ version: 2.4.0
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="