Class: Google::Apis::PubsubliteV1::ComputeMessageStatsResponse
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::ComputeMessageStatsResponse
- 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
-
#message_bytes ⇒ Fixnum
The number of quota bytes accounted to these messages.
-
#message_count ⇒ Fixnum
The count of messages.
-
#minimum_event_time ⇒ String
The minimum event timestamp across these messages.
-
#minimum_publish_time ⇒ String
The minimum publish timestamp across these messages.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeMessageStatsResponse
constructor
A new instance of ComputeMessageStatsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeMessageStatsResponse
Returns a new instance of ComputeMessageStatsResponse.
199 200 201 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 199 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message_bytes ⇒ Fixnum
The number of quota bytes accounted to these messages.
Corresponds to the JSON property messageBytes
178 179 180 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 178 def @message_bytes end |
#message_count ⇒ Fixnum
The count of messages.
Corresponds to the JSON property messageCount
183 184 185 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 183 def @message_count end |
#minimum_event_time ⇒ String
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
190 191 192 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 190 def minimum_event_time @minimum_event_time end |
#minimum_publish_time ⇒ String
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
197 198 199 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 197 def minimum_publish_time @minimum_publish_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
204 205 206 207 208 209 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 204 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 |