23#include <libcouchbase/iometrics.h>
26#include <libcouchbase/visibility.h>
35#define LCBTRACE_F_LOGGING 0x01
75typedef struct lcbmetrics_VALUERECORDER_ lcbmetrics_VALUERECORDER;
92typedef struct lcbmetrics_METER_ lcbmetrics_METER;
104typedef const lcbmetrics_VALUERECORDER *(*lcbmetrics_VALUE_RECORDER_CALLBACK)(
const lcbmetrics_METER *meter,
118typedef void (*lcbmetrics_RECORD_VALUE)(
const lcbmetrics_VALUERECORDER *recorder, uint64_t value);
128lcb_STATUS lcbmetrics_valuerecorder_create(lcbmetrics_VALUERECORDER **recorder,
void *cookie);
138lcb_STATUS lcbmetrics_valuerecorder_dtor_callback(lcbmetrics_VALUERECORDER *recorder,
139 void (*callback)(
const lcbmetrics_VALUERECORDER *recorder));
148LIBCOUCHBASE_API
lcb_STATUS lcbmetrics_valuerecorder_record_value_callback(lcbmetrics_VALUERECORDER *recorder,
149 lcbmetrics_RECORD_VALUE callback);
158lcb_STATUS lcbmetrics_valuerecorder_cookie(
const lcbmetrics_VALUERECORDER *recorder,
void **cookie);
171void lcbmetrics_valuerecorder_destroy(
const lcbmetrics_VALUERECORDER *recorder);
183lcb_STATUS lcbmetrics_meter_create(lcbmetrics_METER **meter,
void *cookie);
193lcb_STATUS lcbmetrics_meter_dtor_callback(lcbmetrics_METER *meter,
void (*callback)(
const lcbmetrics_METER *meter));
202LIBCOUCHBASE_API
lcb_STATUS lcbmetrics_meter_value_recorder_callback(lcbmetrics_METER *meter,
203 lcbmetrics_VALUE_RECORDER_CALLBACK callback);
212lcb_STATUS lcbmetrics_meter_cookie(
const lcbmetrics_METER *meter,
void **cookie);
225void lcbmetrics_meter_destroy(
const lcbmetrics_METER *meter);
Definition of all of the error codes used by libcouchbase.
lcb_STATUS
Error codes returned by the library.
Definition error.h:213
Operation metrics tags.
Definition metrics.h:64