sensu-plugins-mssql 0.0.5 → 0.0.6

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: af920c9b19b4ad7d365c342fe6946d3253df3540
4
- data.tar.gz: ef5037674a6f5cf570684b62158a169e174ad245
3
+ metadata.gz: 8ea55783c59f9359ed910fb8a949bc86d50961ff
4
+ data.tar.gz: dc9f8175a9a09dd329837e81a0ffef0f119c8683
5
5
  SHA512:
6
- metadata.gz: 92fb247d3a3588db99bf16664a936f100afdf27a3ec37054e6d938a09a0f8ee1f88ce46d53672783b1d11dc2ce533600a538caa17274d4330b47a7030c787342
7
- data.tar.gz: 19dd96724d81bbf9b1bd867c6addbb5a76615ec90c2d13a0be1ce281200d120145f2af76bf4edbd47fc09e25378d6fcc58373c307b19f3d6f7959e8882758ee4
6
+ metadata.gz: 56ff26db23e8bcf1339e177ff79f508a0973a351888f5219ea597e17161919928c5a74fd5a0d0607e8aed13e8a2b8e7714ca917fa63ae8aa6f0f7d93b1dd92d5
7
+ data.tar.gz: 323b563fb3a5b9a2521d4f6816f2652f3f359481eb54e2c4dfbedf0674e0b43f01fda5ae6079e9582db31cbb09e5b334121ae8085228b843c8497009657537f4
@@ -94,7 +94,7 @@ class CheckMsSQLLag < Sensu::Plugin::Check::CLI
94
94
  replica = TinyTds::Client.new(username: config[:user], password: config[:password],
95
95
  host: config[:replica_host], database: config[:database],
96
96
  port: config[:port])
97
- sql = "SELECT TOP 1 DATEDIFF(SECOND, '1970-01-01', CreatedAt) As lag FROM [dbo].[Order] ORDER BY OrderID DESC;"
97
+ sql = "SELECT TOP 1 DATEDIFF(SECOND, '1970-01-01', CreatedAt) As lag FROM [dbo].[UserGeoLocationHistories] ORDER BY CreatedAt DESC;"
98
98
  primary.execute(sql).each[0]['lag'] - replica.execute(sql).each[0]['lag']
99
99
  end
100
100
 
@@ -2,7 +2,7 @@ module SensuPluginsMsSQL
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 5
5
+ PATCH = 6
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-mssql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin