Class: Google::Apis::CloudtraceV1::Trace
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV1::Trace
- Defined in:
- generated/google/apis/cloudtrace_v1/classes.rb,
generated/google/apis/cloudtrace_v1/representations.rb,
generated/google/apis/cloudtrace_v1/representations.rb
Overview
A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation.
Instance Attribute Summary collapse
-
#project_id ⇒ String
Project ID of the Cloud project where the trace data is stored.
-
#spans ⇒ Array<Google::Apis::CloudtraceV1::TraceSpan>
Collection of spans in the trace.
-
#trace_id ⇒ String
Globally unique identifier for the trace.
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
47 48 49 |
# File 'generated/google/apis/cloudtrace_v1/classes.rb', line 47 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project_id ⇒ String
Project ID of the Cloud project where the trace data is stored.
Corresponds to the JSON property projectId
39 40 41 |
# File 'generated/google/apis/cloudtrace_v1/classes.rb', line 39 def project_id @project_id end |
#spans ⇒ Array<Google::Apis::CloudtraceV1::TraceSpan>
Collection of spans in the trace.
Corresponds to the JSON property spans
34 35 36 |
# File 'generated/google/apis/cloudtrace_v1/classes.rb', line 34 def spans @spans end |
#trace_id ⇒ String
Globally unique identifier for the trace. This identifier is a 128-bit
numeric value formatted as a 32-byte hex string.
Corresponds to the JSON property traceId
45 46 47 |
# File 'generated/google/apis/cloudtrace_v1/classes.rb', line 45 def trace_id @trace_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
52 53 54 55 56 |
# File 'generated/google/apis/cloudtrace_v1/classes.rb', line 52 def update!(**args) @spans = args[:spans] if args.key?(:spans) @project_id = args[:project_id] if args.key?(:project_id) @trace_id = args[:trace_id] if args.key?(:trace_id) end |