Class: Couchbase::DiagnosticsResult
- Inherits:
-
Object
- Object
- Couchbase::DiagnosticsResult
- Defined in:
- lib/couchbase/diagnostics.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/diagnostics.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.
80 81 82 83 |
# File 'lib/couchbase/diagnostics.rb', line 80 def initialize @services = {} yield self if block_given? end |
Instance Attribute Details
#id ⇒ String
Returns report id.
62 63 64 |
# File 'lib/couchbase/diagnostics.rb', line 62 def id @id end |
#sdk ⇒ String
Returns SDK identifier.
65 66 67 |
# File 'lib/couchbase/diagnostics.rb', line 65 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
77 78 79 |
# File 'lib/couchbase/diagnostics.rb', line 77 def services @services end |
Instance Method Details
#to_json(*args) ⇒ Object
[View source]
89 90 91 92 93 94 95 96 |
# File 'lib/couchbase/diagnostics.rb', line 89 def to_json(*args) { version: @version, id: @id, sdk: @sdk, services: @services, }.to_json(*args) end |