topological_inventory-providers-common 1.0.9 → 1.0.10

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
  SHA256:
3
- metadata.gz: 880ff945277cf130a2617a20278ff29298e8a7644b92e254e7c4dd32002a58bc
4
- data.tar.gz: b3e65e3652f156fc0de8e2f6d97c1a9eac095d015035ae08d787c86f1da3b597
3
+ metadata.gz: cd89d895ea401fd0692588fb0f7dc86d6df4a4ec189e73ec4453eafc2be13c7e
4
+ data.tar.gz: 933d448f102d927a62153b75eadd2fb835d1f6fa5a72496ddbaf830a040ff1cc
5
5
  SHA512:
6
- metadata.gz: 7ad7a27bd9ae06e1161917aa5fa55f20f87ed9a69d9e1936968e21c7c4bab634924317e544afeaaa8530de2998bd156f912435eef9c3151758e82f8f3f0f9c08
7
- data.tar.gz: 37e3bdc21b29c71927a0c797a6cc56267a8be9ab1031a702ed6d6fa8f38c76c38ddb13baf32f1eeaccf3306328daed21edbcedeb0a9f1669c0df3ee9a685c029
6
+ metadata.gz: 012ad9a5e0f75a7a9970c31b269fdd7f0ef740ec7626c585ff003ba7cc784ba32995208ebef39de05666e1e442b2104aa44685d2b0d2855c012744e7553c7ea1
7
+ data.tar.gz: 73590bf64ce08ae60a3693f0214a60f31a2f5b82780542180bf7d6a5e8b32d156b2e4fa2e85cea8088b8ef0178737ca365b5e932117b52becf8777cc5916acd1
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.0.10]
8
+ Add HealthCheck class for operations workers #48
9
+ Set the LOG_LEVEL if present #50
10
+
7
11
  ## [1.0.9]
8
12
  Added refresh-type to save and sweep inventory #45
9
13
 
@@ -49,7 +53,8 @@ manageiq-loggers to >= 0.4.2 #20
49
53
  ## [1.0.0] - 2020-03-19
50
54
  ### Initial release to rubygems.org
51
55
 
52
- [Unreleased]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v1.0.9...HEAD
56
+ [Unreleased]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v1.0.10...HEAD
57
+ [1.0.10]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v1.0.9...v1.0.10
53
58
  [1.0.9]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v1.0.8...v1.0.9
54
59
  [1.0.8]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v1.0.7...v1.0.8
55
60
  [1.0.7]: https://github.com/RedHatInsights/topological_inventory-providers-common/compare/v1.0.6...v1.0.7
@@ -2,6 +2,7 @@ require "topological_inventory/providers/common/version"
2
2
  require "topological_inventory/providers/common/logging"
3
3
  require "topological_inventory/providers/common/operations/processor"
4
4
  require "topological_inventory/providers/common/operations/endpoint_client"
5
+ require "topological_inventory/providers/common/operations/health_check"
5
6
  require "topological_inventory/providers/common/collectors_pool"
6
7
  require "topological_inventory/providers/common/collector"
7
8
 
@@ -33,7 +33,10 @@ module TopologicalInventory
33
33
 
34
34
  class Logger < ManageIQ::Loggers::CloudWatch
35
35
  def self.new(*args)
36
- super.tap { |logger| logger.extend(TopologicalInventory::Providers::Common::LoggingFunctions) }
36
+ super.tap do |logger|
37
+ logger.extend(TopologicalInventory::Providers::Common::LoggingFunctions)
38
+ logger.level = ENV['LOG_LEVEL'] if ENV['LOG_LEVEL']
39
+ end
37
40
  end
38
41
  end
39
42
 
@@ -0,0 +1,15 @@
1
+ module TopologicalInventory
2
+ module Providers
3
+ module Common
4
+ module Operations
5
+ class HealthCheck
6
+ HEARTBEAT_FILE = '/tmp/healthy'.freeze
7
+
8
+ def self.touch_file
9
+ FileUtils.touch(HEARTBEAT_FILE)
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,7 +1,7 @@
1
1
  module TopologicalInventory
2
2
  module Providers
3
3
  module Common
4
- VERSION = "1.0.9"
4
+ VERSION = "1.0.10"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: topological_inventory-providers-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Slemr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2020-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -253,6 +253,7 @@ files:
253
253
  - lib/topological_inventory/providers/common/collectors_pool.rb
254
254
  - lib/topological_inventory/providers/common/logging.rb
255
255
  - lib/topological_inventory/providers/common/operations/endpoint_client.rb
256
+ - lib/topological_inventory/providers/common/operations/health_check.rb
256
257
  - lib/topological_inventory/providers/common/operations/processor.rb
257
258
  - lib/topological_inventory/providers/common/operations/source.rb
258
259
  - lib/topological_inventory/providers/common/operations/sources_api_client.rb