Class: Google::Apis::TracingV1::Annotation

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

Text annotation with a set of attributes.

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

Returns a new instance of Annotation



280
281
282
# File 'generated/google/apis/tracing_v1/classes.rb', line 280

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

Instance Attribute Details

#attributesHash<String,Google::Apis::TracingV1::AttributeValue>

A set of attributes on the annotation. Corresponds to the JSON property attributes

Returns:



278
279
280
# File 'generated/google/apis/tracing_v1/classes.rb', line 278

def attributes
  @attributes
end

#descriptionString

A user-supplied message describing the event. Corresponds to the JSON property description

Returns:

  • (String)


273
274
275
# File 'generated/google/apis/tracing_v1/classes.rb', line 273

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



285
286
287
288
# File 'generated/google/apis/tracing_v1/classes.rb', line 285

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