metricsspec 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +30 -0
- data/Rakefile +2 -0
- data/lib/metricsspec/field.rb +41 -0
- data/lib/metricsspec/helpers.rb +15 -0
- data/lib/metricsspec/metrics.rb +115 -0
- data/lib/metricsspec/version.rb +3 -0
- data/lib/metricsspec.rb +26 -0
- data/metricsspec.gemspec +28 -0
- data/spec/metrics_spec.rb +181 -0
- data/spec/spec_helper.rb +1 -0
- metadata +144 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ec302ec862e5a74663f45ff5acc08c7d95115012
|
4
|
+
data.tar.gz: 561bde76d5faa0e507886b7d07585f4e58abaa88
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d1cfe07dce729c8bec39f449676cacade41005343c19454e17db5288e28d9ebd83ae3b9382e8ff28ca75783621e9b450bf761692122fc1b685d97ae8700b092c
|
7
|
+
data.tar.gz: 507dad5c9061360725b8b0d5bd3fecd6baedaa3b62924b6f9c64b725b6558f691c3c3953e0ac0db87d2ab52629e93b81924b33480c6a276afa1265caf1084a6b
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Masaki Matsushita
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# MetricSspec
|
2
|
+
|
3
|
+
MetricSpec is a tool for testing your server's metrics in elasticsearch.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
```ruby:spec_helper.rb
|
8
|
+
require "metricsspec"
|
9
|
+
|
10
|
+
RSpec.configure do |c|
|
11
|
+
c.elasticsearch = {
|
12
|
+
host: "localhost"
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
```
|
17
|
+
|
18
|
+
```ruby:cpu_spec.rb
|
19
|
+
describe metrics("@tag:dstat.cpu-usr").avg("value") do
|
20
|
+
it { should be < 90 }
|
21
|
+
end
|
22
|
+
```
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
|
26
|
+
1. Fork it ( https://github.com/[my-github-username]/metricsspec/fork )
|
27
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
28
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
29
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
30
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
module MetricsSpec
|
2
|
+
class Field
|
3
|
+
def initialize(metrics, field)
|
4
|
+
@metrics = metrics
|
5
|
+
@field = field.freeze
|
6
|
+
end
|
7
|
+
|
8
|
+
def inspect
|
9
|
+
"#<#{self.class.name}:\"#{@field}\" metrics=#{@metrics.inspect}>"
|
10
|
+
end
|
11
|
+
|
12
|
+
SingleValueAggs = [:min, :max, :sum, :avg, :value_count, :cardinality].freeze
|
13
|
+
SingleValueAggs.each do |aggregation_type|
|
14
|
+
define_method(aggregation_type) do
|
15
|
+
return @metrics.aggs(aggregation_type, @field)["value"]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
MultiValueAggs = [:stats, :extended_stats, :percentiles].freeze
|
20
|
+
MultiValueAggs.each do |aggregation_type, **options|
|
21
|
+
define_method(aggregation_type) do
|
22
|
+
return @metrics.aggs(aggregation_type, @field)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def last(n=1)
|
27
|
+
hits = @metrics.last(n)
|
28
|
+
case hits
|
29
|
+
when Hash
|
30
|
+
hits[@field]
|
31
|
+
when Array
|
32
|
+
hits.map {|hit| hit[@field] }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def minmax
|
37
|
+
stats = stats()
|
38
|
+
return stats["min"], stats["max"]
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
module MetricsSpec
|
2
|
+
class Metrics
|
3
|
+
HostField = "@host"
|
4
|
+
|
5
|
+
def initialize(query_string, host_field: nil)
|
6
|
+
@query_string = query_string
|
7
|
+
@filters = []
|
8
|
+
end
|
9
|
+
|
10
|
+
attr_reader :query_string, :aggs, :filters
|
11
|
+
|
12
|
+
def initialize_copy(orig)
|
13
|
+
@filters = orig.filters.dup
|
14
|
+
end
|
15
|
+
|
16
|
+
def [](field)
|
17
|
+
Field.new(self, field)
|
18
|
+
end
|
19
|
+
|
20
|
+
def count
|
21
|
+
body = Jbuilder.encode do |json|
|
22
|
+
json.query do
|
23
|
+
json.query_string do
|
24
|
+
json.query @query_string
|
25
|
+
end
|
26
|
+
end
|
27
|
+
json.filter build_filters() unless @filters.empty?
|
28
|
+
end
|
29
|
+
return MetricsSpec.client.count(body: body)["count"]
|
30
|
+
end
|
31
|
+
|
32
|
+
TimestampDescSorter = [{ "@timestamp" => { order: "desc" } }]
|
33
|
+
|
34
|
+
def last(n=1)
|
35
|
+
body = Jbuilder.encode do |json|
|
36
|
+
json.size n
|
37
|
+
json.sort do
|
38
|
+
json.array! TimestampDescSorter
|
39
|
+
end
|
40
|
+
end
|
41
|
+
hits = search(body)["hits"]["hits"]
|
42
|
+
hits.map! {|hit| hit["_source"] }
|
43
|
+
return hits.first if n == 1
|
44
|
+
return hits
|
45
|
+
end
|
46
|
+
|
47
|
+
def empty?
|
48
|
+
count.zero?
|
49
|
+
end
|
50
|
+
|
51
|
+
def term(field, term)
|
52
|
+
filter = {
|
53
|
+
term: {
|
54
|
+
field => term
|
55
|
+
}
|
56
|
+
}
|
57
|
+
return filtered(filter)
|
58
|
+
end
|
59
|
+
|
60
|
+
def range(field, **range)
|
61
|
+
range.compact!
|
62
|
+
filter = {
|
63
|
+
range: {
|
64
|
+
field => range
|
65
|
+
}
|
66
|
+
}
|
67
|
+
return filtered(filter)
|
68
|
+
end
|
69
|
+
|
70
|
+
DefaultHostField = "@host"
|
71
|
+
DefaultTimeField = "@timestamp"
|
72
|
+
|
73
|
+
def at(host, field: DefaultHostField)
|
74
|
+
term(field, host)
|
75
|
+
end
|
76
|
+
|
77
|
+
def within(seconds, field: DefaultTimeField)
|
78
|
+
range(field, gte: "now-#{seconds}s")
|
79
|
+
end
|
80
|
+
|
81
|
+
def aggs(aggregation_type, field, **options)
|
82
|
+
field = field.to_s
|
83
|
+
query = Jbuilder.encode do |json|
|
84
|
+
json.size 0
|
85
|
+
json.aggs do
|
86
|
+
json.set! field do
|
87
|
+
json.set! aggregation_type do
|
88
|
+
json.field field
|
89
|
+
json.merge! options unless options.empty?
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
json.filter build_filters() unless @filters.empty?
|
94
|
+
end
|
95
|
+
return search(query)["aggregations"][field]
|
96
|
+
end
|
97
|
+
|
98
|
+
private
|
99
|
+
|
100
|
+
def search(body)
|
101
|
+
MetricsSpec.client.search(q: @query_string, body: body)
|
102
|
+
end
|
103
|
+
|
104
|
+
def build_filters
|
105
|
+
return @filters.first if @filters.size == 1
|
106
|
+
return Jbuilder.new {|json| json.and @filters }
|
107
|
+
end
|
108
|
+
|
109
|
+
def filtered(filter)
|
110
|
+
duped = self.dup
|
111
|
+
duped.filters.push(filter)
|
112
|
+
return duped
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
data/lib/metricsspec.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require "socket"
|
2
|
+
require "rspec/core"
|
3
|
+
require "jbuilder"
|
4
|
+
require "active_support/core_ext/numeric"
|
5
|
+
require "elasticsearch"
|
6
|
+
|
7
|
+
module MetricsSpec
|
8
|
+
module_function
|
9
|
+
|
10
|
+
def client
|
11
|
+
@@client ||= ::Elasticsearch::Client.new(RSpec.configuration.elasticsearch)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
require "metricsspec/version"
|
16
|
+
require "metricsspec/metrics"
|
17
|
+
require "metricsspec/field"
|
18
|
+
require "metricsspec/helpers"
|
19
|
+
|
20
|
+
RSpec.configure do |c|
|
21
|
+
c.add_setting :host, default: Socket.gethostname
|
22
|
+
c.add_setting :host_field, default: "@host"
|
23
|
+
c.add_setting :elasticsearch
|
24
|
+
end
|
25
|
+
|
26
|
+
include MetricsSpec::Helpers
|
data/metricsspec.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'metricsspec/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "metricsspec"
|
8
|
+
spec.version = Metricsspec::VERSION
|
9
|
+
spec.authors = ["Masaki Matsushita"]
|
10
|
+
spec.email = ["glass.saga@gmail.com"]
|
11
|
+
spec.summary = %q{a tool for testing your server's metrics in elasticsearch}
|
12
|
+
spec.description = %q{a tool for testing your server's metrics in elasticsearch}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "rspec", "~> 3.0"
|
22
|
+
spec.add_dependency "elasticsearch", "~> 1.0"
|
23
|
+
spec.add_dependency "activesupport", "~> 4.1"
|
24
|
+
spec.add_dependency "jbuilder", "~> 2.0"
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.3"
|
28
|
+
end
|
@@ -0,0 +1,181 @@
|
|
1
|
+
require_relative "spec_helper"
|
2
|
+
|
3
|
+
include MetricsSpec
|
4
|
+
|
5
|
+
describe MetricsSpec do
|
6
|
+
describe Helpers do
|
7
|
+
describe "metrics" do
|
8
|
+
before { include Helpers }
|
9
|
+
subject { metrics("foo") }
|
10
|
+
it { should be_a Metrics }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe Metrics do
|
15
|
+
let(:query_string) { "@tag:foo.bar" }
|
16
|
+
subject { Metrics.new(query_string) }
|
17
|
+
it { expect(subject.query_string).to eq query_string }
|
18
|
+
|
19
|
+
describe "count" do
|
20
|
+
let(:count) { 1 }
|
21
|
+
|
22
|
+
before do
|
23
|
+
client = double("client")
|
24
|
+
expect(client).to receive(:count) do
|
25
|
+
{ "count" => count }
|
26
|
+
end
|
27
|
+
expect(MetricsSpec).to receive(:client) { client }
|
28
|
+
end
|
29
|
+
|
30
|
+
it { expect(subject.count).to eq count }
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "empty?" do
|
34
|
+
before do
|
35
|
+
client = double("client")
|
36
|
+
expect(client).to receive(:count) do
|
37
|
+
{ "count" => 0 }
|
38
|
+
end
|
39
|
+
expect(MetricsSpec).to receive(:client) { client }
|
40
|
+
end
|
41
|
+
|
42
|
+
subject { metrics("foo") }
|
43
|
+
|
44
|
+
it { should be_empty }
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "last" do
|
48
|
+
let(:item1) do
|
49
|
+
{
|
50
|
+
"_source" => {
|
51
|
+
"foo" => "bar"
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
let(:item2) do
|
57
|
+
{
|
58
|
+
"_source" => {
|
59
|
+
"hoge" => "fuga"
|
60
|
+
}
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
before do
|
65
|
+
client = double("client")
|
66
|
+
expect(client).to receive(:search) do
|
67
|
+
{
|
68
|
+
"hits" => {
|
69
|
+
"hits" => [
|
70
|
+
item1,
|
71
|
+
item2
|
72
|
+
]
|
73
|
+
}
|
74
|
+
}
|
75
|
+
end
|
76
|
+
expect(MetricsSpec).to receive(:client) { client }
|
77
|
+
end
|
78
|
+
|
79
|
+
context "without arguments" do
|
80
|
+
it { expect(subject.last).to eq item1["_source"] }
|
81
|
+
end
|
82
|
+
|
83
|
+
context "n = 2" do
|
84
|
+
it { expect(subject.last(2)).to eq [item1["_source"], item2["_source"]] }
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
describe "range" do
|
91
|
+
let(:range_metrics) { metrics("foo").range("field", gt: "now-2m") }
|
92
|
+
let(:expected_filter) do
|
93
|
+
{
|
94
|
+
range: {
|
95
|
+
"field" => {
|
96
|
+
gt: "now-2m"
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
|
102
|
+
subject { range_metrics.filters }
|
103
|
+
it { expect(subject).to include expected_filter }
|
104
|
+
|
105
|
+
context "chain" do
|
106
|
+
let(:range_metrics) { metrics("foo").range("field1", gt: "now-2m").range("field2", gt: "now-2m") }
|
107
|
+
let(:filter1) do
|
108
|
+
{
|
109
|
+
range: {
|
110
|
+
"field1" => {
|
111
|
+
gt: "now-2m"
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
end
|
116
|
+
let(:filter2) do
|
117
|
+
{
|
118
|
+
range: {
|
119
|
+
"field2" => {
|
120
|
+
gt: "now-2m"
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
end
|
125
|
+
|
126
|
+
subject { range_metrics.filters }
|
127
|
+
it { expect(subject).to include filter1 }
|
128
|
+
it { expect(subject).to include filter2 }
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
describe Field do
|
134
|
+
let(:_metrics) { metrics("foo") }
|
135
|
+
|
136
|
+
describe "min" do
|
137
|
+
let(:field_name) { "value" }
|
138
|
+
let(:field) { _metrics[field_name] }
|
139
|
+
let(:min) { 42 }
|
140
|
+
|
141
|
+
before do
|
142
|
+
client = double("client")
|
143
|
+
expect(client).to receive(:search) do
|
144
|
+
{
|
145
|
+
"aggregations" => {
|
146
|
+
field_name => {
|
147
|
+
"value" => min
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
end
|
152
|
+
expect(MetricsSpec).to receive(:client) { client }
|
153
|
+
end
|
154
|
+
|
155
|
+
it { expect(field.min).to eq min }
|
156
|
+
end
|
157
|
+
|
158
|
+
describe "stats" do
|
159
|
+
let(:field_name) { "value" }
|
160
|
+
let(:field) { _metrics[field_name] }
|
161
|
+
let(:avg) { 42 }
|
162
|
+
let(:stats_expected) { { "avg" => avg } }
|
163
|
+
|
164
|
+
before do
|
165
|
+
client = double("client")
|
166
|
+
expect(client).to receive(:search) do
|
167
|
+
{
|
168
|
+
"aggregations" => {
|
169
|
+
field_name => {
|
170
|
+
"avg" => avg
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
end
|
175
|
+
expect(MetricsSpec).to receive(:client) { client }
|
176
|
+
end
|
177
|
+
|
178
|
+
it { expect(field.stats).to eq stats_expected }
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require_relative "../lib/metricsspec"
|
metadata
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: metricsspec
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Masaki Matsushita
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: elasticsearch
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jbuilder
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.6'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.6'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.3'
|
97
|
+
description: a tool for testing your server's metrics in elasticsearch
|
98
|
+
email:
|
99
|
+
- glass.saga@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- Gemfile
|
106
|
+
- LICENSE.txt
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- lib/metricsspec.rb
|
110
|
+
- lib/metricsspec/field.rb
|
111
|
+
- lib/metricsspec/helpers.rb
|
112
|
+
- lib/metricsspec/metrics.rb
|
113
|
+
- lib/metricsspec/version.rb
|
114
|
+
- metricsspec.gemspec
|
115
|
+
- spec/metrics_spec.rb
|
116
|
+
- spec/spec_helper.rb
|
117
|
+
homepage: ''
|
118
|
+
licenses:
|
119
|
+
- MIT
|
120
|
+
metadata: {}
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options: []
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
requirements: []
|
136
|
+
rubyforge_project:
|
137
|
+
rubygems_version: 2.2.2
|
138
|
+
signing_key:
|
139
|
+
specification_version: 4
|
140
|
+
summary: a tool for testing your server's metrics in elasticsearch
|
141
|
+
test_files:
|
142
|
+
- spec/metrics_spec.rb
|
143
|
+
- spec/spec_helper.rb
|
144
|
+
has_rdoc:
|