Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/code/plugin/health/agg_monitor_id_labels.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require_relative 'health_model_constants'

module HealthModel
class AggregateMonitorInstanceIdLabels
@@id_labels_mapping = {
Expand Down
1 change: 1 addition & 0 deletions source/code/plugin/health/health_kube_api_down_handler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require_relative 'health_model_constants'
module HealthModel
class HealthKubeApiDownHandler
def initialize
Expand Down
1 change: 1 addition & 0 deletions source/code/plugin/health/health_kubernetes_resources.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'singleton'
require_relative 'health_model_constants'

module HealthModel
class HealthKubernetesResources
Expand Down
3 changes: 3 additions & 0 deletions source/code/plugin/health/health_missing_signal_generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require_relative 'health_model_constants'
require_relative 'health_monitor_record'

module HealthModel
class HealthMissingSignalGenerator
attr_accessor :last_received_records, :current_received_records
Expand Down
1 change: 0 additions & 1 deletion source/code/plugin/health/health_model_builder.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative 'health_model_constants'
require 'time'

module HealthModel
Expand Down
1 change: 1 addition & 0 deletions source/code/plugin/health/health_monitor_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'logger'
require 'digest'
require_relative 'health_model_constants'

module HealthModel
# static class that provides a bunch of utility methods
Expand Down
2 changes: 2 additions & 0 deletions source/code/plugin/health/health_monitor_provider.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require_relative 'health_model_constants'

module HealthModel
class HealthMonitorProvider

Expand Down
2 changes: 2 additions & 0 deletions source/code/plugin/health/health_monitor_state.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require_relative 'health_model_constants'

module HealthModel

HealthMonitorInstanceState = Struct.new(:prev_sent_record_time, :old_state, :new_state, :state_change_time, :prev_records, :is_state_change_consistent, :should_send) do
Expand Down
1 change: 1 addition & 0 deletions source/code/plugin/health/health_monitor_utils.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'logger'
require 'digest'
require_relative 'health_model_constants'

module HealthModel
# static class that provides a bunch of utility methods
Expand Down
2 changes: 2 additions & 0 deletions source/code/plugin/health/health_signal_reducer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require_relative 'health_model_constants'

module HealthModel
# this class
# 1. dedupes daemonset signals and takes only the latest
Expand Down
3 changes: 3 additions & 0 deletions source/code/plugin/health/monitor_factory.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require_relative 'aggregate_monitor'
require_relative 'unit_monitor'

module HealthModel
class MonitorFactory

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative 'health_model_constants'

module HealthModel
class NodeMonitorHierarchyReducer
Expand Down
1 change: 1 addition & 0 deletions source/code/plugin/health/parent_monitor_provider.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require_relative 'health_model_constants'
module HealthModel
class ParentMonitorProvider

Expand Down
1 change: 0 additions & 1 deletion source/code/plugin/health/unit_monitor.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative 'health_model_constants'
require 'json'

module HealthModel
Expand Down