Sha256: d40462076a2aabf2b22740d77ff008df13311f31f7af65d57972e0de8e1d7a16
Contents?: true
Size: 782 Bytes
Versions: 3
Compression:
Stored size: 782 Bytes
Contents
# frozen_string_literal: true module Resources LOG_LEVELS = %w[DEBUG INFO WARN ERROR FATAL TRACE].freeze DEFAULT_REQUEST_HEADER = { "Content-Type" => "application/json; charset=UTF-8" }.freeze DEFAULT_REQUEST_TIMEOUT = 180_000 MS_IN_A_DAY = 86_400_000 MAX_REQUEST_TIMEOUT = 300_000 MAX_LINE_LENGTH = 32_000 MAX_INPUT_LENGTH = 80 RETRY_TIMEOUT = 0.25 RETRY_MAX_ATTEMPTS = 3 RETRY_MAX_JITTER = 0.5 FLUSH_INTERVAL = 0.25 FLUSH_SIZE = 2 * 1_024 * 1_024 REQUEST_SIZE = 2 * 1_024 * 1_024 ENDPOINT = "https://in.hyperdx.io" MAC_ADDR_CHECK = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/.freeze IP_ADDR_CHECK = /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.freeze MAX_CONCURRENT_REQUESTS = 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hyperdx-ruby-0.1.2 | lib/hyperdx/ruby/resources.rb |
hyperdx-ruby-0.1.1 | lib/hyperdx/ruby/resources.rb |
hyperdx-ruby-0.1.0 | lib/hyperdx/ruby/resources.rb |