Class: Couchbase::Cluster::DiagnosticsResult
- Inherits:
-
Object
- Object
- Couchbase::Cluster::DiagnosticsResult
- Defined in:
- lib/couchbase/cluster.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/cluster.rb more...
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.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ DiagnosticsResult
constructor
A new instance of DiagnosticsResult.
- #to_json(*args) ⇒ Object
Constructor Details
#initialize {|self| ... } ⇒ DiagnosticsResult
Returns a new instance of DiagnosticsResult.
402 403 404 405 |
# File 'lib/couchbase/cluster.rb', line 402 def initialize @services = Hash.new yield self if block_given? end |
Instance Attribute Details
#id ⇒ String
Returns report id.
384 385 386 |
# File 'lib/couchbase/cluster.rb', line 384 def id @id end |
#sdk ⇒ String
Returns SDK identifier.
387 388 389 |
# File 'lib/couchbase/cluster.rb', line 387 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
399 400 401 |
# File 'lib/couchbase/cluster.rb', line 399 def services @services end |
Instance Method Details
#to_json(*args) ⇒ Object
[View source]
411 412 413 414 415 416 417 418 |
# File 'lib/couchbase/cluster.rb', line 411 def to_json(*args) { version: @version, id: @id, sdk: @sdk, services: @services, }.to_json(*args) end |