engage-engine 1.251.90910028 → 1.252.90920030
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/ConfigurationObjects.h +88 -0
- package/lib/darwin.arm64/libengage-shared.dylib +0 -0
- package/lib/darwin.x64/libengage-shared.dylib +0 -0
- package/lib/darwin.x64/rts-fips.dylib +0 -0
- package/lib/linux.arm64/libengage-shared.so +0 -0
- package/lib/linux.x64/libengage-shared.so +0 -0
- package/lib/win32.ia32/engage-shared.dll +0 -0
- package/lib/win32.ia32/rts-fips.dll +0 -0
- package/lib/win32.x64/engage-shared.dll +0 -0
- package/lib/win32.x64/rts-fips.dll +0 -0
- package/package.json +1 -1
|
@@ -8321,6 +8321,88 @@ namespace AppConfigurationObjects
|
|
|
8321
8321
|
}
|
|
8322
8322
|
|
|
8323
8323
|
|
|
8324
|
+
//-----------------------------------------------------------
|
|
8325
|
+
JSON_SERIALIZED_CLASS(RallypointServerStreamStatsExport)
|
|
8326
|
+
/**
|
|
8327
|
+
* Helper C++ class to serialize and de-serialize RallypointServerStreamStatsExport JSON
|
|
8328
|
+
*
|
|
8329
|
+
* Example: @include[doc] examples/RallypointServerStreamStatsExport.json
|
|
8330
|
+
*
|
|
8331
|
+
* @see RallypointServer
|
|
8332
|
+
*/
|
|
8333
|
+
class RallypointServerStreamStatsExport : public ConfigurationObjectBase
|
|
8334
|
+
{
|
|
8335
|
+
IMPLEMENT_JSON_SERIALIZATION()
|
|
8336
|
+
IMPLEMENT_JSON_DOCUMENTATION(RallypointServerStreamStatsExport)
|
|
8337
|
+
|
|
8338
|
+
public:
|
|
8339
|
+
/** @brief Enum describing format(s) for the stream stats export. */
|
|
8340
|
+
typedef enum
|
|
8341
|
+
{
|
|
8342
|
+
/** @brief Data in CSV format */
|
|
8343
|
+
fmtCsv = 0,
|
|
8344
|
+
|
|
8345
|
+
/** @brief Data in JSON format */
|
|
8346
|
+
fmtJson = 1
|
|
8347
|
+
} ExportFormat_t;
|
|
8348
|
+
|
|
8349
|
+
/** File name to use for the stream stats export. */
|
|
8350
|
+
std::string fileName;
|
|
8351
|
+
|
|
8352
|
+
/** [Optional, Default: 60] The interval at which to export stream stats. */
|
|
8353
|
+
int intervalSecs;
|
|
8354
|
+
|
|
8355
|
+
/** [Optional, Default: false] Indicates if stream stats export is enabled. */
|
|
8356
|
+
bool enabled;
|
|
8357
|
+
|
|
8358
|
+
/** [Optional, Default: false] Whether to reset counters after export. */
|
|
8359
|
+
bool resetCountersAfterExport;
|
|
8360
|
+
|
|
8361
|
+
/** [Optional, Default: null] Command to be executed every time the stream stats export is produced. */
|
|
8362
|
+
std::string runCmd;
|
|
8363
|
+
|
|
8364
|
+
/** [Optional, Default: fmtCsv] Format for the stream stats export. */
|
|
8365
|
+
ExportFormat_t format;
|
|
8366
|
+
|
|
8367
|
+
|
|
8368
|
+
RallypointServerStreamStatsExport()
|
|
8369
|
+
{
|
|
8370
|
+
clear();
|
|
8371
|
+
}
|
|
8372
|
+
|
|
8373
|
+
void clear()
|
|
8374
|
+
{
|
|
8375
|
+
fileName.clear();
|
|
8376
|
+
intervalSecs = 60;
|
|
8377
|
+
enabled = false;
|
|
8378
|
+
resetCountersAfterExport = false;
|
|
8379
|
+
runCmd.clear();
|
|
8380
|
+
format = fmtJson;
|
|
8381
|
+
}
|
|
8382
|
+
};
|
|
8383
|
+
|
|
8384
|
+
static void to_json(nlohmann::json& j, const RallypointServerStreamStatsExport& p)
|
|
8385
|
+
{
|
|
8386
|
+
j = nlohmann::json{
|
|
8387
|
+
TOJSON_IMPL(fileName),
|
|
8388
|
+
TOJSON_IMPL(intervalSecs),
|
|
8389
|
+
TOJSON_IMPL(enabled),
|
|
8390
|
+
TOJSON_IMPL(resetCountersAfterExport),
|
|
8391
|
+
TOJSON_IMPL(runCmd),
|
|
8392
|
+
TOJSON_IMPL(format)
|
|
8393
|
+
};
|
|
8394
|
+
}
|
|
8395
|
+
static void from_json(const nlohmann::json& j, RallypointServerStreamStatsExport& p)
|
|
8396
|
+
{
|
|
8397
|
+
p.clear();
|
|
8398
|
+
getOptional<std::string>("fileName", p.fileName, j);
|
|
8399
|
+
getOptional<int>("intervalSecs", p.intervalSecs, j, 60);
|
|
8400
|
+
getOptional<bool>("enabled", p.enabled, j, false);
|
|
8401
|
+
getOptional<bool>("resetCountersAfterExport", p.resetCountersAfterExport, j, false);
|
|
8402
|
+
getOptional<std::string>("runCmd", p.runCmd, j);
|
|
8403
|
+
getOptional<RallypointServerStreamStatsExport::ExportFormat_t>("format", p.format, j, RallypointServerStreamStatsExport::ExportFormat_t::fmtCsv);
|
|
8404
|
+
}
|
|
8405
|
+
|
|
8324
8406
|
//-----------------------------------------------------------
|
|
8325
8407
|
JSON_SERIALIZED_CLASS(RallypointServerRouteMap)
|
|
8326
8408
|
class RallypointServerRouteMap : public ConfigurationObjectBase
|
|
@@ -9255,6 +9337,9 @@ namespace AppConfigurationObjects
|
|
|
9255
9337
|
/** @brief Details for producing a report containing the route map. @see RallypointServerRouteMap */
|
|
9256
9338
|
RallypointServerRouteMap routeMap;
|
|
9257
9339
|
|
|
9340
|
+
/** @brief Details for exporting stream statistics. @see RallypointServerStreamStatsExport */
|
|
9341
|
+
RallypointServerStreamStatsExport streamStatsExport;
|
|
9342
|
+
|
|
9258
9343
|
/** @brief [Optional, Default 15] Sets the delta value for the maximum number of seconds to delay when attempting outbound peer connections */
|
|
9259
9344
|
uint32_t maxOutboundPeerConnectionIntervalDeltaSecs;
|
|
9260
9345
|
|
|
@@ -9346,6 +9431,7 @@ namespace AppConfigurationObjects
|
|
|
9346
9431
|
disableLoopDetection = false;
|
|
9347
9432
|
maxSecurityLevel = 0;
|
|
9348
9433
|
routeMap.clear();
|
|
9434
|
+
streamStatsExport.clear();
|
|
9349
9435
|
maxOutboundPeerConnectionIntervalDeltaSecs = 15;
|
|
9350
9436
|
peerRtTestIntervalMs = 60000;
|
|
9351
9437
|
peerRtBehaviors.clear();
|
|
@@ -9412,6 +9498,7 @@ namespace AppConfigurationObjects
|
|
|
9412
9498
|
TOJSON_IMPL(disableLoopDetection),
|
|
9413
9499
|
TOJSON_IMPL(maxSecurityLevel),
|
|
9414
9500
|
TOJSON_IMPL(routeMap),
|
|
9501
|
+
TOJSON_IMPL(streamStatsExport),
|
|
9415
9502
|
TOJSON_IMPL(maxOutboundPeerConnectionIntervalDeltaSecs),
|
|
9416
9503
|
TOJSON_IMPL(peerRtTestIntervalMs),
|
|
9417
9504
|
TOJSON_IMPL(peerRtBehaviors),
|
|
@@ -9477,6 +9564,7 @@ namespace AppConfigurationObjects
|
|
|
9477
9564
|
getOptional<bool>("disableLoopDetection", p.disableLoopDetection, j, false);
|
|
9478
9565
|
getOptional<uint32_t>("maxSecurityLevel", p.maxSecurityLevel, j, 0);
|
|
9479
9566
|
getOptional<RallypointServerRouteMap>("routeMap", p.routeMap, j);
|
|
9567
|
+
getOptional<RallypointServerStreamStatsExport>("streamStatsExport", p.streamStatsExport, j);
|
|
9480
9568
|
getOptional<uint32_t>("maxOutboundPeerConnectionIntervalDeltaSecs", p.maxOutboundPeerConnectionIntervalDeltaSecs, j, 15);
|
|
9481
9569
|
getOptional<int>("peerRtTestIntervalMs", p.peerRtTestIntervalMs, j, 60000);
|
|
9482
9570
|
getOptional<std::vector<RallypointRpRtTimingBehavior>>("peerRtBehaviors", p.peerRtBehaviors, j);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED