- LOG_LEVELS =
%w[DEBUG INFO WARN ERROR FATAL TRACE].freeze
{ "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