Class: Google::Apis::CloudtraceV2::Link

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 pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.

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) ⇒ Link

Returns a new instance of Link.



180
181
182
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 180

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

Instance Attribute Details

#attributesGoogle::Apis::CloudtraceV2::Attributes

A set of attributes, each in the format [KEY]:[VALUE]. Corresponds to the JSON property attributes



163
164
165
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 163

def attributes
  @attributes
end

#span_idString

The [SPAN_ID] for a span within a trace. Corresponds to the JSON property spanId

Returns:

  • (String)


168
169
170
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 168

def span_id
  @span_id
end

#trace_idString

The [TRACE_ID] for a trace within a project. Corresponds to the JSON property traceId

Returns:

  • (String)


173
174
175
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 173

def trace_id
  @trace_id
end

#typeString

The relationship of the current span relative to the linked span. Corresponds to the JSON property type

Returns:

  • (String)


178
179
180
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 178

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



185
186
187
188
189
190
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 185

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @span_id = args[:span_id] if args.key?(:span_id)
  @trace_id = args[:trace_id] if args.key?(:trace_id)
  @type = args[:type] if args.key?(:type)
end