Class: Google::Apis::CloudtraceV2::Trace
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2::Trace
- Defined in:
- generated/google/apis/cloudtrace_v2/classes.rb,
generated/google/apis/cloudtrace_v2/representations.rb,
generated/google/apis/cloudtrace_v2/representations.rb
Overview
A trace describes how long it takes for an application to perform some operations. It consists of a set of spans, each representing an operation and including time information and operation details.
Instance Attribute Summary collapse
-
#name ⇒ String
The resource name of the trace in the following format: projects/[PROJECT_ID]/traces/TRACE_ID is a unique identifier for a trace within a project.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Trace
constructor
A new instance of Trace.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Trace
Returns a new instance of Trace
761 762 763 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 761 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The resource name of the trace in the following format:
projects/[PROJECT_ID]/traces/TRACE_ID is a unique identifier for a trace
within a project.
The ID is assigned when the trace is created.
Corresponds to the JSON property name
759 760 761 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 759 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
766 767 768 |
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 766 def update!(**args) @name = args[:name] if args.key?(:name) end |