logstash_auditor 0.0.4 → 0.0.5

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: 6f8dec6ba0d7de7778cc515f4e80f3d69a4a00b3
4
- data.tar.gz: 2d65e403c26b261d8fc0f191764bc76ec46422f7
3
+ metadata.gz: 4a48638193dc463da2061eabdf14e5c0fdd301ef
4
+ data.tar.gz: 22fece4261c92559d60f777a1523b2d2e3ed2f66
5
5
  SHA512:
6
- metadata.gz: 65c93f8af9c1856a081a4f3464b3570d82004d57a727cb9975c27e5c37d69850d94610d92bf051759308c31721f7d783f76ae7d89994173612c038d1ec9a37a4
7
- data.tar.gz: be829566efe2a0716662bf828c7449b9e5c482806e90f97b4215d8cc7f149d7a7d05a502e964f3e8b15174473f55d42c29c41b5a2c179822bee6af8616d71362
6
+ metadata.gz: 7c02dcd0bb18389ca6679c76e22fb7178e39ff9566ec730b202b6321aac09c3528ba61bda10e2a4fac1179e9d04d3fa07ef1c8965abb105b89df782c766a58b6
7
+ data.tar.gz: a29d438577478f3d09907eb0e9adc14b6974121f177f7c24b07e3b911fab84bf465399296de059c9a585a8804e428eecfbdf58c5e6f5b0b26fb7496c52c23e37
@@ -19,9 +19,32 @@ module LogstashAuditor
19
19
  @has_been_configured = true
20
20
  end
21
21
 
22
- def event(flow_id, message)
23
- raise ArgumentError, "No flow id provided" if flow_id == nil
24
- data = { "flow_id" => flow_id, "message" => message }
22
+ def debug(data)
23
+ event(data)
24
+ end
25
+
26
+ def info(data)
27
+ event(data)
28
+ end
29
+
30
+ def error(data)
31
+ event(data)
32
+ end
33
+
34
+ def warn(data)
35
+ event(data)
36
+ end
37
+
38
+ def fatal(data)
39
+ event(data)
40
+ end
41
+
42
+ def <<(data)
43
+ event(data)
44
+ end
45
+
46
+ def event(data)
47
+ data = { "message" => data }
25
48
  send_event( data )
26
49
  end
27
50
 
@@ -1,3 +1,3 @@
1
1
  module LogstashAuditor
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash_auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers