Class: Ably::Models::Stats::MessageCount

Inherits:
StatsStruct show all
Defined in:
lib/ably/models/stats_types.rb

Overview

MessageCount contains aggregate counts for messages and data transferred

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

#countInteger (readonly)

Returns count of all messages.

Returns:

  • (Integer)

    count of all messages



66
67
68
# File 'lib/ably/models/stats_types.rb', line 66

class MessageCount < StatsStruct
  coerce_attributes :count, :data, into: IntegerDefaultZero
end

#dataInteger (readonly)

Returns total data transferred for all messages in bytes.

Returns:

  • (Integer)

    total data transferred for all messages in bytes



66
67
68
# File 'lib/ably/models/stats_types.rb', line 66

class MessageCount < StatsStruct
  coerce_attributes :count, :data, into: IntegerDefaultZero
end