Class: Ably::Models::Stats::ResourceCount

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

Overview

ResourceCount contains aggregate data for usage of a resource in a specific scope

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

#meanInteger (readonly)

Returns average resources of this type used for this period

Returns:

  • (Integer)

    average resources of this type used for this period



92
93
94
# File 'lib/ably/models/stats_types.rb', line 92

class ResourceCount < StatsStruct
  coerce_attributes :opened, :peak, :mean, :min, :refused, into: IntegerDefaultZero
end

#minInteger (readonly)

Returns minimum total resources of this type used for this period

Returns:

  • (Integer)

    minimum total resources of this type used for this period



92
93
94
# File 'lib/ably/models/stats_types.rb', line 92

class ResourceCount < StatsStruct
  coerce_attributes :opened, :peak, :mean, :min, :refused, into: IntegerDefaultZero
end

#openedInteger (readonly)

Returns total resources of this type opened

Returns:

  • (Integer)

    total resources of this type opened



92
93
94
# File 'lib/ably/models/stats_types.rb', line 92

class ResourceCount < StatsStruct
  coerce_attributes :opened, :peak, :mean, :min, :refused, into: IntegerDefaultZero
end

#peakInteger (readonly)

Returns peak resources of this type used for this period

Returns:

  • (Integer)

    peak resources of this type used for this period



92
93
94
# File 'lib/ably/models/stats_types.rb', line 92

class ResourceCount < StatsStruct
  coerce_attributes :opened, :peak, :mean, :min, :refused, into: IntegerDefaultZero
end

#refusedInteger (readonly)

Returns resource requests refused within this period

Returns:

  • (Integer)

    resource requests refused within this period



92
93
94
# File 'lib/ably/models/stats_types.rb', line 92

class ResourceCount < StatsStruct
  coerce_attributes :opened, :peak, :mean, :min, :refused, into: IntegerDefaultZero
end