Sha256: e8302741759f3c4ea79289ac7927553cfe74e15274c1d2f624e788b6e98e4774
Contents?: true
Size: 672 Bytes
Versions: 4
Compression:
Stored size: 672 Bytes
Contents
# Copyright (c) 2022 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
4 entries across 4 versions & 1 rubygems