Skip to main content

Client Metric API Reference

INTERNAL USE ONLY. This module is for internal use only, you should not use it in game.

API List

APIDescription
ReportMetricReport a metric event
FlushFlush all metric data in queue

API Details

ReportMetric

Report a metric event

/**
* Report a metric event
*
* @param metric_name An unique name for reported event
* @param data Key-value pairs that store the metric data
*/
void ReportMetric(
const pgos::pstring& metric_name,
const pgos::pmap<pgos::pstring, KVDataValue>& data);

Parameters:

ParamTypeDescription
metric_nameconst std::string&An unique name for reported event
dataconst std::map<std::string, KVDataValue>&Key-value pairs that store the metric data

Return: void

Flush

Flush all metric data in queue

/**
* Flush all metric data in queue
*/
void Flush();

Parameters:

(No parameters)

Return: void