Class: Couchbase::Options::Cluster::ApplicationTelemetry
- Inherits:
-
Object
- Object
- Couchbase::Options::Cluster::ApplicationTelemetry
- Defined in:
- lib/couchbase/options.rb
Overview
Application Telemetry Options for Cluster.connect. Part of Couchbase::Options::Cluster
Instance Attribute Summary collapse
- #backoff ⇒ nil, ...
- #enable ⇒ nil, Boolean
- #override_endpoint ⇒ nil, String
- #ping_interval ⇒ nil, ...
- #ping_timeout ⇒ nil, ...
Instance Method Summary collapse
-
#initialize(enable: nil, override_endpoint: nil, backoff: nil, ping_interval: nil, ping_timeout: nil) {|_self| ... } ⇒ ApplicationTelemetry
constructor
Creates an instance of app telemetry options for Cluster.connect.
- #to_backend ⇒ Object private
Constructor Details
#initialize(enable: nil, override_endpoint: nil, backoff: nil, ping_interval: nil, ping_timeout: nil) {|_self| ... } ⇒ ApplicationTelemetry
Creates an instance of app telemetry options for Cluster.connect. Part of Couchbase::Options::Cluster.
1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 |
# File 'lib/couchbase/options.rb', line 1872 def initialize(enable: nil, override_endpoint: nil, backoff: nil, ping_interval: nil, ping_timeout: nil) @enable = enable @override_endpoint = override_endpoint @backoff = backoff @ping_interval = ping_interval @ping_timeout = ping_timeout yield self if block_given? end |
Instance Attribute Details
#backoff ⇒ nil, ...
1855 1856 1857 |
# File 'lib/couchbase/options.rb', line 1855 def backoff @backoff end |
#enable ⇒ nil, Boolean
1853 1854 1855 |
# File 'lib/couchbase/options.rb', line 1853 def enable @enable end |
#override_endpoint ⇒ nil, String
1854 1855 1856 |
# File 'lib/couchbase/options.rb', line 1854 def override_endpoint @override_endpoint end |
#ping_interval ⇒ nil, ...
1856 1857 1858 |
# File 'lib/couchbase/options.rb', line 1856 def ping_interval @ping_interval end |
#ping_timeout ⇒ nil, ...
1857 1858 1859 |
# File 'lib/couchbase/options.rb', line 1857 def ping_timeout @ping_timeout end |
Instance Method Details
#to_backend ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1887 1888 1889 1890 1891 1892 1893 1894 1895 |
# File 'lib/couchbase/options.rb', line 1887 def to_backend { enable: @enable, override_endpoint: @override_endpoint, backoff: Utils::Time.extract_duration(@backoff), ping_interval: Utils::Time.extract_duration(@ping_interval), ping_timeout: Utils::Time.extract_duration(@ping_timeout), } end |