Class: Ably::Models::Stats::ConnectionTypes

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

Overview

ConnectionTypes contains a breakdown of summary stats data for different (TLS vs non-TLS) connection 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

#allResourceCount (readonly)

Returns all connection count (includes both TLS & non-TLS connections).

Returns:

  • (ResourceCount)

    all connection count (includes both TLS & non-TLS connections)



103
104
105
# File 'lib/ably/models/stats_types.rb', line 103

class ConnectionTypes < StatsStruct
  coerce_attributes :tls, :plain, :all, into: ResourceCount
end

#plainResourceCount (readonly)

Returns non-TLS connection count (unencrypted).

Returns:



103
104
105
# File 'lib/ably/models/stats_types.rb', line 103

class ConnectionTypes < StatsStruct
  coerce_attributes :tls, :plain, :all, into: ResourceCount
end

#tlsResourceCount (readonly)

Returns TLS connection count.

Returns:



103
104
105
# File 'lib/ably/models/stats_types.rb', line 103

class ConnectionTypes < StatsStruct
  coerce_attributes :tls, :plain, :all, into: ResourceCount
end