Class: Google::Apis::TracingV1::Annotation
- Inherits:
-
Object
- Object
- Google::Apis::TracingV1::Annotation
- 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
-
#attributes ⇒ Hash<String,Google::Apis::TracingV1::AttributeValue>
A set of attributes on the annotation.
-
#description ⇒ String
A user-supplied message describing the event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Annotation
constructor
A new instance of Annotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#attributes ⇒ Hash<String,Google::Apis::TracingV1::AttributeValue>
A set of attributes on the annotation.
Corresponds to the JSON property attributes
278 279 280 |
# File 'generated/google/apis/tracing_v1/classes.rb', line 278 def attributes @attributes end |
#description ⇒ String
A user-supplied message describing the event.
Corresponds to the JSON property description
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 |