Class: Datadog::Profiling::Flush
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Profiling::Flush
- Defined in:
- lib/ddtrace/profiling/flush.rb
Overview
Entity class used to represent metadata for a given profile
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#event_count ⇒ Object
Returns the value of attribute event_count.
-
#event_groups ⇒ Object
Returns the value of attribute event_groups.
-
#finish ⇒ Object
Returns the value of attribute finish.
-
#host ⇒ Object
Returns the value of attribute host.
-
#language ⇒ Object
Returns the value of attribute language.
-
#profiler_version ⇒ Object
Returns the value of attribute profiler_version.
-
#runtime_engine ⇒ Object
Returns the value of attribute runtime_engine.
-
#runtime_id ⇒ Object
Returns the value of attribute runtime_id.
-
#runtime_platform ⇒ Object
Returns the value of attribute runtime_platform.
-
#runtime_version ⇒ Object
Returns the value of attribute runtime_version.
-
#service ⇒ Object
Returns the value of attribute service.
-
#start ⇒ Object
Returns the value of attribute start.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Flush
constructor
A new instance of Flush.
Constructor Details
#initialize(*args) ⇒ Flush
Returns a new instance of Flush.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/ddtrace/profiling/flush.rb', line 25 def initialize(*args) super self.runtime_id = runtime_id || Datadog::Core::Environment::Identity.id self.service = service || Datadog.configuration.service self.env = env || Datadog.configuration.env self.version = version || Datadog.configuration.version self.host = host || Datadog::Core::Environment::Socket.hostname self.language = language || Datadog::Core::Environment::Identity.lang self.runtime_engine = runtime_engine || Datadog::Core::Environment::Identity.lang_engine self.runtime_platform = runtime_platform || Datadog::Core::Environment::Identity.lang_platform self.runtime_version = runtime_version || Datadog::Core::Environment::Identity.lang_version self.profiler_version = profiler_version || Datadog::Core::Environment::Identity.tracer_version self. = || Datadog.configuration. end |
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def env @env end |
#event_count ⇒ Object
Returns the value of attribute event_count
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def event_count @event_count end |
#event_groups ⇒ Object
Returns the value of attribute event_groups
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def event_groups @event_groups end |
#finish ⇒ Object
Returns the value of attribute finish
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def finish @finish end |
#host ⇒ Object
Returns the value of attribute host
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def host @host end |
#language ⇒ Object
Returns the value of attribute language
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def language @language end |
#profiler_version ⇒ Object
Returns the value of attribute profiler_version
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def profiler_version @profiler_version end |
#runtime_engine ⇒ Object
Returns the value of attribute runtime_engine
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def runtime_engine @runtime_engine end |
#runtime_id ⇒ Object
Returns the value of attribute runtime_id
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def runtime_id @runtime_id end |
#runtime_platform ⇒ Object
Returns the value of attribute runtime_platform
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def runtime_platform @runtime_platform end |
#runtime_version ⇒ Object
Returns the value of attribute runtime_version
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def runtime_version @runtime_version end |
#service ⇒ Object
Returns the value of attribute service
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def service @service end |
#start ⇒ Object
Returns the value of attribute start
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def start @start end |
#tags ⇒ Object
Returns the value of attribute tags
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def @tags end |
#version ⇒ Object
Returns the value of attribute version
8 9 10 |
# File 'lib/ddtrace/profiling/flush.rb', line 8 def version @version end |