graylogapi 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graylogapi/system/cluster.rb +4 -0
- data/lib/graylogapi/system/inputs/types.rb +7 -0
- data/lib/graylogapi/version.rb +1 -1
- 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: 935e0873c8bf8d85ed280b4805334e5f5db69de6
|
4
|
+
data.tar.gz: a4e92c51db6504f9b2162e53f903d4628b17e80e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e501fabaa1ccf084e0056ffbd3b053e467aa9aec4f9992108a097bfb8dedc0bc686cb91db21ffefe0fe39266ab57964f9b43642fd39312ab2e8e678f8666b8b
|
7
|
+
data.tar.gz: 6c8db390c781c37ce269c1dc7e53cbf148d37ac57eeac9f0dbd34cabee0bd0e065080f76cc3cbf1bc8e59d04799bbe03ccdc9633583db137745d4bd9631f2c50
|
@@ -34,6 +34,13 @@ class GraylogAPI
|
|
34
34
|
def name_to_type(name)
|
35
35
|
all.body.find { |_, type| type['name'].casecmp(name).zero? }.first
|
36
36
|
end
|
37
|
+
|
38
|
+
# converg type_id to type name
|
39
|
+
#
|
40
|
+
# @return [String]
|
41
|
+
def type_to_name(type_id)
|
42
|
+
all.body.find { |_, type| type['type'].casecmp(type_id).zero? }.last['name']
|
43
|
+
end
|
37
44
|
end
|
38
45
|
end
|
39
46
|
end
|
data/lib/graylogapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graylogapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Aleksandrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Allows you to work with graylog api from ruby
|
14
14
|
email:
|