From dddf00e3b180821d6d4fe549115703c2a7201328 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Mon, 6 Jul 2020 16:15:24 -0700 Subject: [PATCH] (cobra python bots) remove the test which stop the bot when events do not follow cobra metrics system schema with an id and a device entry --- docs/CHANGELOG.md | 4 ++++ ixbots/ixbots/IXCobraToPythonBot.cpp | 12 ------------ ixwebsocket/IXWebSocketVersion.h | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 0a8f418d..3f2f74eb 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.8.5] - 2020-07-06 + +(cobra python bots) remove the test which stop the bot when events do not follow cobra metrics system schema with an id and a device entry + ## [9.8.4] - 2020-06-26 (cobra bots) remove bots which is not required now that we can use Python extensions diff --git a/ixbots/ixbots/IXCobraToPythonBot.cpp b/ixbots/ixbots/IXCobraToPythonBot.cpp index fd137983..384c51ff 100644 --- a/ixbots/ixbots/IXCobraToPythonBot.cpp +++ b/ixbots/ixbots/IXCobraToPythonBot.cpp @@ -162,18 +162,6 @@ namespace ix std::atomic& /*throttled*/, std::atomic& fatalCobraError, std::atomic& sentCount) -> void { - if (msg["device"].isNull()) - { - CoreLogger::info("no device entry, skipping event"); - return; - } - - if (msg["id"].isNull()) - { - CoreLogger::info("no id entry, skipping event"); - return; - } - // // Invoke python script here. First build function parameters, a tuple // diff --git a/ixwebsocket/IXWebSocketVersion.h b/ixwebsocket/IXWebSocketVersion.h index a3b2c5fb..4b659abf 100644 --- a/ixwebsocket/IXWebSocketVersion.h +++ b/ixwebsocket/IXWebSocketVersion.h @@ -6,4 +6,4 @@ #pragma once -#define IX_WEBSOCKET_VERSION "9.8.4" +#define IX_WEBSOCKET_VERSION "9.8.5"