(cobra to statsd bot) add ability to extract a numerical value and send a gauge event to statsd

This commit is contained in:
Benjamin Sergeant
2020-03-29 19:31:49 -07:00
parent cfa5718e40
commit f8bf1fe7cd
6 changed files with 58 additions and 6 deletions

View File

@ -111,6 +111,7 @@ TEST_CASE("Cobra_to_statsd_bot", "[cobra_bots]")
REQUIRE(initialized);
std::string fields("device.game\ndevice.os_name");
std::string gauge;
int sentCount = ix::cobra_to_statsd_bot(config,
channel,
@ -118,6 +119,7 @@ TEST_CASE("Cobra_to_statsd_bot", "[cobra_bots]")
position,
statsdClient,
fields,
gauge,
verbose,
maxQueueSize,
enableHeartbeat,