Class: Google::Apis::CloudtraceV2::Trace

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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

#nameString

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

Returns:

  • (String)


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