Class: Ably::Models::Stats::RequestCount

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

Overview

RequestCount contains aggregate counts for requests made

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

#failedInteger (readonly)

Returns requests failed.

Returns:

  • (Integer)

    requests failed



77
78
79
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 77

class RequestCount < StatsStruct
  coerce_attributes :succeeded, :failed, :refused, into: IntegerDefaultZero
end

#refusedInteger (readonly)

Returns requests refused typically as a result of permissions or a limit being exceeded.

Returns:

  • (Integer)

    requests refused typically as a result of permissions or a limit being exceeded



77
78
79
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 77

class RequestCount < StatsStruct
  coerce_attributes :succeeded, :failed, :refused, into: IntegerDefaultZero
end

#succeededInteger (readonly)

Returns requests succeeded.

Returns:

  • (Integer)

    requests succeeded



77
78
79
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 77

class RequestCount < StatsStruct
  coerce_attributes :succeeded, :failed, :refused, into: IntegerDefaultZero
end