Client Metric API Reference
INTERNAL USE ONLY. This module is for internal use only, you should not use it in game.
API List
| API | Description |
|---|---|
| ReportMetric | Report a metric event |
| Flush | Flush all metric data in queue |
API Details
ReportMetric
Report a metric event
/// <summary>Report a metric event</summary>
/// <param name="metric_name">An unique name for reported event</param>
/// <param name="data">Key-value pairs that store the metric data</param>
public void ReportMetric(string metric_name, Dictionary<string, KVDataValue> data);
Parameters:
| Param | Type | Description |
|---|---|---|
| metric_name | string | An unique name for reported event |
| data | Dictionary<string, KVDataValue> | Key-value pairs that store the metric data |
Return: void
Flush
Flush all metric data in queue
/// <summary>Flush all metric data in queue</summary>
public void Flush();
Parameters:
(No parameters)
Return: void