Class: Ably::Models::Stats::MessageTraffic
- Inherits:
-
StatsStruct
- Object
- StatsStruct
- Ably::Models::Stats::MessageTraffic
- Defined in:
- lib/submodules/ably-ruby/lib/ably/models/stats_types.rb
Overview
MessageTraffic contains a breakdown of summary stats data for traffic over various transport types
Instance Attribute Summary collapse
-
#all ⇒ MessageTypes
readonly
All messages count (includes realtime, rest and webhook messages).
-
#realtime ⇒ MessageTypes
readonly
Count of messages transferred over a realtime transport such as WebSockets.
-
#rest ⇒ MessageTypes
readonly
Count of messages transferred using REST.
-
#webhook ⇒ MessageTypes
readonly
Count of messages delivered using WebHooks.
Attributes inherited from StatsStruct
Method Summary
Methods inherited from StatsStruct
coerce_attributes, #initialize, type_klass
Constructor Details
This class inherits a constructor from Ably::Models::Stats::StatsStruct
Instance Attribute Details
#all ⇒ MessageTypes (readonly)
Returns all messages count (includes realtime, rest and webhook messages).
127 128 129 |
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 127 class MessageTraffic < StatsStruct coerce_attributes :realtime, :rest, :webhook, :all, into: MessageTypes end |
#realtime ⇒ MessageTypes (readonly)
Returns count of messages transferred over a realtime transport such as WebSockets.
127 128 129 |
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 127 class MessageTraffic < StatsStruct coerce_attributes :realtime, :rest, :webhook, :all, into: MessageTypes end |
#rest ⇒ MessageTypes (readonly)
Returns count of messages transferred using REST.
127 128 129 |
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 127 class MessageTraffic < StatsStruct coerce_attributes :realtime, :rest, :webhook, :all, into: MessageTypes end |
#webhook ⇒ MessageTypes (readonly)
Returns count of messages delivered using WebHooks.
127 128 129 |
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 127 class MessageTraffic < StatsStruct coerce_attributes :realtime, :rest, :webhook, :all, into: MessageTypes end |