Class: Contrast::Components::Polling::Interface
- Includes:
- ComponentBase
- Defined in:
- lib/contrast/components/polling.rb
Overview
A wrapper build around the agent.polling config
Constant Summary collapse
- CANON_NAME =
'agent.polling'
- CONFIG_VALUES =
%w[server_settings_ms app_settings_ms batch_reporting_interval_ms].cs__freeze
Constants included from ComponentBase
Constants included from Contrast::Config::Diagnostics::Tools
Contrast::Config::Diagnostics::Tools::CHECK
Constants included from Contrast::Config::Diagnostics::SingletonTools
Contrast::Config::Diagnostics::SingletonTools::API_CREDENTIALS, Contrast::Config::Diagnostics::SingletonTools::CONTRAST_MARK
Instance Attribute Summary collapse
- #app_settings_ms ⇒ Integer?
- #batch_reporting_interval_ms ⇒ Integer?
- #canon_name ⇒ String readonly
- #config_values ⇒ Array readonly
- #server_settings_ms ⇒ Integer?
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ Interface
constructor
A new instance of Interface.
Methods included from ComponentBase
#false?, #file_exists?, #stringify_array, #to_effective_config, #true?, #valid_cert?
Methods included from Contrast::Config::Diagnostics::Tools
#add_effective_config_values, #add_single_effective_value
Methods included from Contrast::Config::Diagnostics::SingletonTools
#flatten_settings, #to_config_values, #update_config, #value_to_s
Constructor Details
#initialize(hsh = {}) ⇒ Interface
Returns a new instance of Interface.
27 28 29 30 31 32 33 34 35 |
# File 'lib/contrast/components/polling.rb', line 27 def initialize hsh = {} @config_values = CONFIG_VALUES @canon_name = CANON_NAME return unless hsh @server_settings_ms = hsh[:server_settings_ms] @batch_reporting_interval_ms = hsh[:batch_reporting_interval_ms] @app_settings_ms = hsh[:app_settings_ms] end |
Instance Attribute Details
#app_settings_ms ⇒ Integer?
16 17 18 |
# File 'lib/contrast/components/polling.rb', line 16 def app_settings_ms @app_settings_ms end |
#batch_reporting_interval_ms ⇒ Integer?
22 23 24 |
# File 'lib/contrast/components/polling.rb', line 22 def batch_reporting_interval_ms @batch_reporting_interval_ms end |
#canon_name ⇒ String (readonly)
18 19 20 |
# File 'lib/contrast/components/polling.rb', line 18 def canon_name @canon_name end |
#config_values ⇒ Array (readonly)
20 21 22 |
# File 'lib/contrast/components/polling.rb', line 20 def config_values @config_values end |
#server_settings_ms ⇒ Integer?
14 15 16 |
# File 'lib/contrast/components/polling.rb', line 14 def server_settings_ms @server_settings_ms end |