Ditto 4.7.2-rc.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ditto::SmallPeerInfo Class Reference

The entrypoint for small peer user info collection. More...

#include <SmallPeerInfo.hpp>

Public Member Functions

json metadata () const
 Gets the metadata as JSON.
 
void set_metadata (json metadata) const
 Sets the metadata as user-provided json and is inserted into the small peer info system doc at each collection interval. The metadata has no schema except for the following constraints:
 
std::string metadata_json_string () const
 
void set_metadata_json_string (std::string metadata) const
 Sets the metadata as user-provided json string and is inserted into the small peer info system doc at each collection interval. The metadata has no schema except for the following constraints:
 
bool is_enabled () const
 
void set_enabled (bool enabled) const
 
SyncScope sync_scope () const
 
void set_sync_scope (SyncScope sync_scope) const
 

Detailed Description

The entrypoint for small peer user info collection.

Member Function Documentation

◆ set_metadata()

void ditto::SmallPeerInfo::set_metadata ( json metadata) const

Sets the metadata as user-provided json and is inserted into the small peer info system doc at each collection interval. The metadata has no schema except for the following constraints:

  1. All contained values must be JSON serializable.
  2. The size of the metadata serialized as JSON may not exceed 128 KB.
  3. The metadata may only be nested up to 64 levels deep.

◆ set_metadata_json_string()

void ditto::SmallPeerInfo::set_metadata_json_string ( std::string metadata) const

Sets the metadata as user-provided json string and is inserted into the small peer info system doc at each collection interval. The metadata has no schema except for the following constraints:

  1. All contained values must be JSON serializable.
  2. The size of the metadata serialized as JSON may not exceed 128 KB.
  3. The metadata may only be nested up to 64 levels deep.