Class: Google::Cloud::Trace::V2::Span::TimeEvent

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudtrace/v2/trace.rb

Overview

A time-stamped annotation or message event in the Span.

Defined Under Namespace

Classes: Annotation, MessageEvent

Instance Attribute Summary collapse

Instance Attribute Details

#annotation::Google::Cloud::Trace::V2::Span::TimeEvent::Annotation

Returns Text annotation with a set of attributes.

Returns:



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 147

class TimeEvent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text annotation with a set of attributes.
  # @!attribute [rw] description
  #   @return [::Google::Cloud::Trace::V2::TruncatableString]
  #     A user-supplied message describing the event. The maximum length for
  #     the description is 256 bytes.
  # @!attribute [rw] attributes
  #   @return [::Google::Cloud::Trace::V2::Span::Attributes]
  #     A set of attributes on the annotation. You can have up to 4 attributes
  #     per Annotation.
  class Annotation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An event describing a message sent/received between Spans.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent::Type]
  #     Type of MessageEvent. Indicates whether the message was sent or
  #     received.
  # @!attribute [rw] id
  #   @return [::Integer]
  #     An identifier for the MessageEvent's message that can be used to match
  #     `SENT` and `RECEIVED` MessageEvents.
  # @!attribute [rw] uncompressed_size_bytes
  #   @return [::Integer]
  #     The number of uncompressed bytes sent or received.
  # @!attribute [rw] compressed_size_bytes
  #   @return [::Integer]
  #     The number of compressed bytes sent or received. If missing, the
  #     compressed size is assumed to be the same size as the uncompressed
  #     size.
  class MessageEvent
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Indicates whether the message was sent or received.
    module Type
      # Unknown event type.
      TYPE_UNSPECIFIED = 0

      # Indicates a sent message.
      SENT = 1

      # Indicates a received message.
      RECEIVED = 2
    end
  end
end

#message_event::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent

Returns An event describing a message sent/received between Spans.

Returns:



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 147

class TimeEvent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text annotation with a set of attributes.
  # @!attribute [rw] description
  #   @return [::Google::Cloud::Trace::V2::TruncatableString]
  #     A user-supplied message describing the event. The maximum length for
  #     the description is 256 bytes.
  # @!attribute [rw] attributes
  #   @return [::Google::Cloud::Trace::V2::Span::Attributes]
  #     A set of attributes on the annotation. You can have up to 4 attributes
  #     per Annotation.
  class Annotation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An event describing a message sent/received between Spans.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent::Type]
  #     Type of MessageEvent. Indicates whether the message was sent or
  #     received.
  # @!attribute [rw] id
  #   @return [::Integer]
  #     An identifier for the MessageEvent's message that can be used to match
  #     `SENT` and `RECEIVED` MessageEvents.
  # @!attribute [rw] uncompressed_size_bytes
  #   @return [::Integer]
  #     The number of uncompressed bytes sent or received.
  # @!attribute [rw] compressed_size_bytes
  #   @return [::Integer]
  #     The number of compressed bytes sent or received. If missing, the
  #     compressed size is assumed to be the same size as the uncompressed
  #     size.
  class MessageEvent
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Indicates whether the message was sent or received.
    module Type
      # Unknown event type.
      TYPE_UNSPECIFIED = 0

      # Indicates a sent message.
      SENT = 1

      # Indicates a received message.
      RECEIVED = 2
    end
  end
end

#time::Google::Protobuf::Timestamp

Returns The timestamp indicating the time the event occurred.

Returns:



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 147

class TimeEvent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text annotation with a set of attributes.
  # @!attribute [rw] description
  #   @return [::Google::Cloud::Trace::V2::TruncatableString]
  #     A user-supplied message describing the event. The maximum length for
  #     the description is 256 bytes.
  # @!attribute [rw] attributes
  #   @return [::Google::Cloud::Trace::V2::Span::Attributes]
  #     A set of attributes on the annotation. You can have up to 4 attributes
  #     per Annotation.
  class Annotation
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # An event describing a message sent/received between Spans.
  # @!attribute [rw] type
  #   @return [::Google::Cloud::Trace::V2::Span::TimeEvent::MessageEvent::Type]
  #     Type of MessageEvent. Indicates whether the message was sent or
  #     received.
  # @!attribute [rw] id
  #   @return [::Integer]
  #     An identifier for the MessageEvent's message that can be used to match
  #     `SENT` and `RECEIVED` MessageEvents.
  # @!attribute [rw] uncompressed_size_bytes
  #   @return [::Integer]
  #     The number of uncompressed bytes sent or received.
  # @!attribute [rw] compressed_size_bytes
  #   @return [::Integer]
  #     The number of compressed bytes sent or received. If missing, the
  #     compressed size is assumed to be the same size as the uncompressed
  #     size.
  class MessageEvent
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Indicates whether the message was sent or received.
    module Type
      # Unknown event type.
      TYPE_UNSPECIFIED = 0

      # Indicates a sent message.
      SENT = 1

      # Indicates a received message.
      RECEIVED = 2
    end
  end
end