From aa142df486569d896bc51bb026599dcec33d0b15 Mon Sep 17 00:00:00 2001
From: Benjamin Sergeant <bsergean@gmail.com>
Date: Fri, 12 Jun 2020 13:47:01 -0700
Subject: [PATCH] (cobra metrics to statsd bot) change from a statsd type of
 gauge to a timing one

---
 docs/CHANGELOG.md                           | 4 ++++
 ixbots/ixbots/IXCobraMetricsToStatsdBot.cpp | 4 ++--
 ixwebsocket/IXWebSocketVersion.h            | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index b499a9ca..c619b1d5 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -1,6 +1,10 @@
 # Changelog
 All changes to this project will be documented in this file.
 
+## [9.7.4] - 2020-06-11
+
+(cobra metrics to statsd bot) change from a statsd type of gauge to a timing one
+
 ## [9.7.3] - 2020-06-11
 
 (redis cobra bots) capture most used devices in a zset
diff --git a/ixbots/ixbots/IXCobraMetricsToStatsdBot.cpp b/ixbots/ixbots/IXCobraMetricsToStatsdBot.cpp
index 1d068a33..7aa8de31 100644
--- a/ixbots/ixbots/IXCobraMetricsToStatsdBot.cpp
+++ b/ixbots/ixbots/IXCobraMetricsToStatsdBot.cpp
@@ -103,7 +103,7 @@ namespace ix
            << removeSpaces(msg["data"]["Tag"].asString());
 
         std::string id = ss.str();
-        statsdClient.gauge(id, slowFrames);
+        statsdClient.timing(id, slowFrames);
 
         // extract device model names for common devices
         auto deviceId = getDeviceIdentifier(msg);
@@ -119,7 +119,7 @@ namespace ix
                << removeSpaces(msg["data"]["Tag"].asString());
 
             std::string id = ss.str();
-            statsdClient.gauge(id, slowFrames);
+            statsdClient.timing(id, slowFrames);
         }
 
         // periodically display all device ids
diff --git a/ixwebsocket/IXWebSocketVersion.h b/ixwebsocket/IXWebSocketVersion.h
index 5e6666d4..afe33a42 100644
--- a/ixwebsocket/IXWebSocketVersion.h
+++ b/ixwebsocket/IXWebSocketVersion.h
@@ -6,4 +6,4 @@
 
 #pragma once
 
-#define IX_WEBSOCKET_VERSION "9.7.3"
+#define IX_WEBSOCKET_VERSION "9.7.4"