Sha256: 9fe39acdad7f84aacf025802292dd1e081191c36f5a667c78b678937f2db9b30
Contents?: true
Size: 866 Bytes
Versions: 5
Compression:
Stored size: 866 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' module Contrast module Agent module Telemetry # This class will hold the basic information for a Telemetry Event class Event include Contrast::Utils attr_reader :tags def initialize @tags = MetricsHash.new(String) @timestamp = Time.now.iso8601 end def path '' end def to_controlled_hash **_args { tags: @tags, timestamp: @timestamp, instance: Contrast::Agent::Telemetry::Base.instance_id, application: Contrast::Agent::Telemetry::Base.application_id } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems