log_parser_notifier 0.0.6 → 0.0.7

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: 25e36655772d7de5a40f8243990da5d7c29e12a7
4
- data.tar.gz: a5c8fb09ca8fd942526cb5a257ce62362bf34b67
3
+ metadata.gz: 84c5e471688b6f6865d222445b3a89a51d7093a4
4
+ data.tar.gz: 069624841b3ee3dd1ae90b56062664f6fc763ee9
5
5
  SHA512:
6
- metadata.gz: cc09fc1488a2bd4b266f5c60df9fa34d7a1412dbbb94e92e7e1e6aa6fff26de29522b90acd385acc601804860c225bfff2e793c03032b315074a64328323bd80
7
- data.tar.gz: cf332ab19457b39caea0a5e79d3092fd28531c13e43d18a48d60f629ce4135f9ae2660de76e92783978f1ff16d61f17fa573325b7ff5c29de9cce799c2e593c5
6
+ metadata.gz: 031f31efea968d4ddf83362d3fa0e4cb049953f4ac775893aad483deaa4a0606b3aa7ac5ab0591f79c152509b769d8544abb6df100ae8696e6819366d506e992
7
+ data.tar.gz: acb2c9f17dca66b6784d7520381b3e636e41b3e7b2a652e0eb1a373ec42a26e2d679b3a60a98a689a5d687afd3e544c4c510aa43342ef29e3000988653c10b0d
@@ -9,7 +9,7 @@ end
9
9
  opts = Slop.parse! do |o|
10
10
  o.banner = 'usage: lib_parser_notifier [options] file_name'
11
11
  o.on :c, :check_interval=, 'check interval (in minutes)', default: 5, as: Integer
12
- o.on :t, :slow_request_threshold=, 'How long does a request need to create an event? (in ms)', default: 500, as: Integer
12
+ o.on :slow_request_threshold=, 'How long does a request need to create an event? (in ms)', default: 500, as: Integer
13
13
  o.on :verbose, 'enable verbose mode'
14
14
  # o.integer '--check_interval', 'check interval (in minutes)', default: 5
15
15
  # o.bool '-v', '--verbose', 'enable verbose mode'
@@ -32,7 +32,7 @@ module LogParserNotifier
32
32
  "#{request[:controller]}##{request[:action]} #{request[:method]} slow request #{request[:duration]} sec",
33
33
  log,
34
34
  {
35
- date_happened: Time.parse(request[:timestamp].to_s).to_i,
35
+ date_happened: Time.parse(request[:timestamp].to_s).to_i.to_s,
36
36
  aggregation_key: 'slow_request_rails',
37
37
  source_type_name: 'rails_log',
38
38
  alert_type: 'warning',
@@ -1,3 +1,3 @@
1
1
  module LogParserNotifier
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_parser_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Moore