Couchbase C++ SDK 1.0.1 (rev. 58d46d7)
Loading...
Searching...
No Matches
diagnostics_result Class Reference

#include <couchbase/diagnostics_result.hxx>

Public Member Functions

 diagnostics_result ()=default
 
 diagnostics_result (std::string id, std::uint16_t version, std::string sdk, std::map< service_type, std::vector< endpoint_diagnostics > > endpoints)
 
auto id () const -> std::string
 Returns the ID of this report.
 
auto version () const -> std::uint16_t
 Returns the version of this report (useful when exporting to JSON).
 
auto sdk () const -> std::string
 Returns the identifier of this SDK (useful when exporting to JSON).
 
auto endpoints () const -> std::map< service_type, std::vector< endpoint_diagnostics > >
 Returns the diagnostics for each individual endpoint, organised by service type.
 
auto as_json () const -> std::string
 Exports the diagnostics report as JSON.
 

Constructor & Destructor Documentation

◆ diagnostics_result() [1/2]

diagnostics_result ( )
default
Since
1.0.0
Internal
Internal interface

◆ diagnostics_result() [2/2]

diagnostics_result ( std::string id,
std::uint16_t version,
std::string sdk,
std::map< service_type, std::vector< endpoint_diagnostics > > endpoints )
inline
Since
1.0.0
Internal
Internal interface

Member Function Documentation

◆ as_json()

auto as_json ( ) const -> std::string

Exports the diagnostics report as JSON.

Returns
the JSON report.
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ endpoints()

auto endpoints ( ) const -> std::map<service_type, std::vector<endpoint_diagnostics>>
inline

Returns the diagnostics for each individual endpoint, organised by service type.

Returns
the service type to endpoint diagnostics reports map.
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ id()

auto id ( ) const -> std::string
inline

Returns the ID of this report.

Returns
the report ID.
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ sdk()

auto sdk ( ) const -> std::string
inline

Returns the identifier of this SDK (useful when exporting to JSON).

Returns
the SDK identifier.
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ version()

auto version ( ) const -> std::uint16_t
inline

Returns the version of this report (useful when exporting to JSON).

Returns
the report version
Since
1.0.0
Committed
Generally available API and should be preferred in production

The documentation for this class was generated from the following file: