Class: Google::Apis::TracingV1::Trace

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/tracing_v1/classes.rb,
generated/google/apis/tracing_v1/representations.rb,
generated/google/apis/tracing_v1/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Trace

Returns a new instance of Trace



304
305
306
# File 'generated/google/apis/tracing_v1/classes.rb', line 304

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

A globally unique identifier for the trace in the format projects/PROJECT_NUMBER/traces/TRACE_ID. TRACE_ID is a base16-encoded string of a 128-bit number and is required to be 32 char long. Corresponds to the JSON property name

Returns:

  • (String)


302
303
304
# File 'generated/google/apis/tracing_v1/classes.rb', line 302

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



309
310
311
# File 'generated/google/apis/tracing_v1/classes.rb', line 309

def update!(**args)
  @name = args[:name] if args.key?(:name)
end