From 063c762b47b531f17465c4495758527c1dada6d9 Mon Sep 17 00:00:00 2001 From: tomdos Date: Tue, 26 Sep 2017 15:50:36 +0100 Subject: [PATCH 1/3] use version in checkin --- Master/azcollect.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Master/azcollect.js b/Master/azcollect.js index 2e5ce6f..e66f221 100644 --- a/Master/azcollect.js +++ b/Master/azcollect.js @@ -1,13 +1,13 @@ /* ----------------------------------------------------------------------------- * @copyright (C) 2017, Alert Logic, Inc * @doc - * + * * The module for communicating with Alertlogic Azcollect service. - * + * * @end * ----------------------------------------------------------------------------- */ - + const m_alServiceC = require('../lib/al_servicec'); const m_version = require('./version'); @@ -27,7 +27,7 @@ class Azcollect extends m_alServiceC.AlServiceC { super(apiEndpoint, 'azcollect', 'v1', aimsCreds, process.env.TMP); } - + _o365RegisterBody() { let o365AuditStreams = JSON.parse(process.env.O365_CONTENT_STREAMS); let registerParams = {}; @@ -47,15 +47,15 @@ class Azcollect extends m_alServiceC.AlServiceC { }}; return Object.assign({}, commonParams , configParams); } - + register_o365() { let regBody = this._o365RegisterBody(); return this.post(`/register/o365`, {body: regBody}); } - + checkin(collectorType, collectorId, statusVal, descriptionVal) { let statusBody = { - collector_version : m_version.getVersion(), + version : m_version.getVersion(), status : statusVal, description : descriptionVal }; From 92575490c9c767ee74031f828ccb7b1d7ce0f25c Mon Sep 17 00:00:00 2001 From: kkuzmin Date: Tue, 26 Sep 2017 16:00:04 +0100 Subject: [PATCH 2/3] Release 1.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61897ef..0b0ea80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "azure_collector", - "version": "1.0.1", + "version": "1.0.2", "dependencies": { "async": "*", "azure": "^2.0.0-preview", From 4d120bf215415aab9211689230a2fe91d1040062 Mon Sep 17 00:00:00 2001 From: tomdos Date: Tue, 26 Sep 2017 16:10:29 +0100 Subject: [PATCH 3/3] add type to checkin bla --- Master/azcollect.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Master/azcollect.js b/Master/azcollect.js index e66f221..35a2bed 100644 --- a/Master/azcollect.js +++ b/Master/azcollect.js @@ -55,6 +55,7 @@ class Azcollect extends m_alServiceC.AlServiceC { checkin(collectorType, collectorId, statusVal, descriptionVal) { let statusBody = { + type : collectorType, version : m_version.getVersion(), status : statusVal, description : descriptionVal