Sha256: 98c719aa269274f2c760321214fd060f902ef0918f7440d83d55618aefae30cf
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/utils/metrics_hash' require 'contrast/agent/telemetry_event' module Contrast module Agent # This class will hold the basic information for a Telemetry Event class MetricTelemetryEvent < Contrast::Agent::TelemetryEvent include Contrast::Utils attr_reader :fields def initialize super @fields = MetricsHash.new(Numeric) @fields['_filler'] = 0 end def to_hash **_args super.merge!({ fields: @fields }) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-4.14.1 | lib/contrast/agent/metric_telemetry_event.rb |
contrast-agent-4.14.0 | lib/contrast/agent/metric_telemetry_event.rb |