Class: Couchbase::PingResult
- Inherits:
-
Object
- Object
- Couchbase::PingResult
- Defined in:
- lib/couchbase/diagnostics.rb
Defined Under Namespace
Classes: ServiceInfo
Instance Attribute Summary collapse
-
#id ⇒ String
Report id.
-
#sdk ⇒ String
SDK identifier.
-
#services ⇒ Hash<Symbol, ServiceInfo>
Returns information about currently service endpoints, that known to the library at the moment.
-
#version ⇒ Integer
private
Version.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ PingResult
constructor
A new instance of PingResult.
- #to_json(*args) ⇒ Object
Constructor Details
#initialize {|self| ... } ⇒ PingResult
Returns a new instance of PingResult.
165 166 167 168 |
# File 'lib/couchbase/diagnostics.rb', line 165 def initialize @services = {} yield self if block_given? end |
Instance Attribute Details
#id ⇒ String
Returns report id.
147 148 149 |
# File 'lib/couchbase/diagnostics.rb', line 147 def id @id end |
#sdk ⇒ String
Returns SDK identifier.
150 151 152 |
# File 'lib/couchbase/diagnostics.rb', line 150 def sdk @sdk end |
#services ⇒ Hash<Symbol, ServiceInfo>
Returns information about currently service endpoints, that known to the library at the moment.
- :kv
-
Key/Value data service
- :query
-
N1QL query service
- :analytics
-
Analtyics service
- :search
-
Full text search service
- :views
-
Views service
- :mgmt
-
Management service
162 163 164 |
# File 'lib/couchbase/diagnostics.rb', line 162 def services @services end |
#version ⇒ Integer
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.
Returns version.
172 173 174 |
# File 'lib/couchbase/diagnostics.rb', line 172 def version @version end |
Instance Method Details
#to_json(*args) ⇒ Object
174 175 176 177 178 179 180 181 |
# File 'lib/couchbase/diagnostics.rb', line 174 def to_json(*args) { version: @version, id: @id, sdk: @sdk, services: @services, }.to_json(*args) end |