(cobra to statsd bot) add ability to extract a numerical value and send a timer event to statsd, with the --timer option

This commit is contained in:
Benjamin Sergeant
2020-03-30 16:08:47 -07:00
parent 296762ce06
commit 1d3db5f75b
7 changed files with 70 additions and 40 deletions

View File

@ -112,6 +112,7 @@ TEST_CASE("Cobra_to_statsd_bot", "[cobra_bots]")
std::string fields("device.game\ndevice.os_name");
std::string gauge;
std::string timer;
int sentCount = ix::cobra_to_statsd_bot(config,
channel,
@ -120,6 +121,7 @@ TEST_CASE("Cobra_to_statsd_bot", "[cobra_bots]")
statsdClient,
fields,
gauge,
timer,
verbose,
maxQueueSize,
enableHeartbeat,