Class: Ably::Models::Stats::MessageTraffic

Inherits:
StatsStruct
  • Object
show all
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

Attributes inherited from StatsStruct

#hash

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

#allMessageTypes (readonly)

Returns all messages count (includes realtime, rest and webhook messages).

Returns:

  • (MessageTypes)

    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

#realtimeMessageTypes (readonly)

Returns count of messages transferred over a realtime transport such as WebSockets.

Returns:

  • (MessageTypes)

    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

#restMessageTypes (readonly)

Returns count of messages transferred using REST.

Returns:

  • (MessageTypes)

    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

#webhookMessageTypes (readonly)

Returns count of messages delivered using WebHooks.

Returns:

  • (MessageTypes)

    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