feat(Core): Add clustering support (#16832)
Co-authored-by: 3kynox <thierry.prost@gmail.com> Co-authored-by: nox <nox@noxen.net> Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f23ac046ab
commit
6f0ba8e896
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
#ifndef __MONITORING__
|
||||
#define __MONITORING__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum MonitoringErrorCode {
|
||||
MonitoringErrorCodeNoError = 0,
|
||||
MonitoringErrorCodeNoHandler = 1,
|
||||
} MonitoringErrorCode;
|
||||
|
||||
// MonitoringDataCollectorResponse request.
|
||||
typedef struct {
|
||||
int errorCode;
|
||||
uint32_t connectedPlayers;
|
||||
uint32_t diffMean;
|
||||
uint32_t diffMedian;
|
||||
uint32_t diff95Percentile;
|
||||
uint32_t diff99Percentile;
|
||||
uint32_t diffMaxPercentile;
|
||||
} MonitoringDataCollectorResponse;
|
||||
|
||||
typedef MonitoringDataCollectorResponse (*MonitoringDataCollectorHandler)();
|
||||
void SetMonitoringDataCollectorHandler(MonitoringDataCollectorHandler h);
|
||||
MonitoringDataCollectorResponse CallMonitoringDataCollectorHandler();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user