Class: Google::Devtools::Cloudtrace::V2::Span::TimeEvent::MessageEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb

Overview

An event describing a message sent/received between Spans.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#compressed_size_bytesInteger

Returns The number of compressed bytes sent or received. If missing assumed to be the same size as uncompressed.

Returns:

  • (Integer)

    The number of compressed bytes sent or received. If missing assumed to be the same size as uncompressed.



147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 147

class MessageEvent
  # 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

#idInteger

Returns An identifier for the MessageEvent's message that can be used to match SENT and RECEIVED MessageEvents. It is recommended to be unique within a Span.

Returns:

  • (Integer)

    An identifier for the MessageEvent's message that can be used to match SENT and RECEIVED MessageEvents. It is recommended to be unique within a Span.



147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 147

class MessageEvent
  # 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

#typeGoogle::Devtools::Cloudtrace::V2::Span::TimeEvent::MessageEvent::Type

Returns Type of MessageEvent. Indicates whether the message was sent or received.

Returns:



147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 147

class MessageEvent
  # 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

#uncompressed_size_bytesInteger

Returns The number of uncompressed bytes sent or received.

Returns:

  • (Integer)

    The number of uncompressed bytes sent or received.



147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 147

class MessageEvent
  # 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