Class: Google::Apis::PubsubliteV1::ComputeMessageStatsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pubsublite_v1/classes.rb,
lib/google/apis/pubsublite_v1/representations.rb,
lib/google/apis/pubsublite_v1/representations.rb

Overview

Response containing stats for messages in the requested topic and partition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeMessageStatsResponse

Returns a new instance of ComputeMessageStatsResponse.



147
148
149
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 147

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

Instance Attribute Details

#message_bytesFixnum

The number of quota bytes accounted to these messages. Corresponds to the JSON property messageBytes

Returns:

  • (Fixnum)


126
127
128
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 126

def message_bytes
  @message_bytes
end

#message_countFixnum

The count of messages. Corresponds to the JSON property messageCount

Returns:

  • (Fixnum)


131
132
133
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 131

def message_count
  @message_count
end

#minimum_event_timeString

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages. Corresponds to the JSON property minimumEventTime

Returns:

  • (String)


138
139
140
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 138

def minimum_event_time
  @minimum_event_time
end

#minimum_publish_timeString

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages. Corresponds to the JSON property minimumPublishTime

Returns:

  • (String)


145
146
147
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 145

def minimum_publish_time
  @minimum_publish_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



152
153
154
155
156
157
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 152

def update!(**args)
  @message_bytes = args[:message_bytes] if args.key?(:message_bytes)
  @message_count = args[:message_count] if args.key?(:message_count)
  @minimum_event_time = args[:minimum_event_time] if args.key?(:minimum_event_time)
  @minimum_publish_time = args[:minimum_publish_time] if args.key?(:minimum_publish_time)
end