Class: Contrast::Config::SamplingConfiguration

Inherits:
BaseConfiguration show all
Defined in:
lib/contrast/config/sampling_configuration.rb

Overview

Common Configuration settings. Those in this section pertain to the sampling functionality of the Agent.

Constant Summary collapse

KEYS =
{
    enable: EMPTY_VALUE,
    baseline: EMPTY_VALUE,
    request_frequency: EMPTY_VALUE,
    response_frequency: EMPTY_VALUE,
    window_ms: EMPTY_VALUE
}.cs__freeze

Constants inherited from BaseConfiguration

BaseConfiguration::BOOLEANS, BaseConfiguration::EMPTY_VALUE

Instance Attribute Summary

Attributes inherited from BaseConfiguration

#map

Instance Method Summary collapse

Methods inherited from BaseConfiguration

#assign_value_to_path_array, #nil?

Constructor Details

#initialize(hsh) ⇒ SamplingConfiguration

Returns a new instance of SamplingConfiguration.



17
18
19
# File 'lib/contrast/config/sampling_configuration.rb', line 17

def initialize hsh
  super(hsh, KEYS)
end