Skip to content

Commit

Permalink
Merge pull request #15 from alertlogic/integration
Browse files Browse the repository at this point in the history
from Integration
  • Loading branch information
tomdos authored Sep 26, 2017
2 parents 344d2d5 + 523a182 commit 1c71317
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions Master/azcollect.js
Original file line number Diff line number Diff line change
@@ -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');

Expand All @@ -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 = {};
Expand All @@ -47,15 +47,16 @@ 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(),
type : collectorType,
version : m_version.getVersion(),
status : statusVal,
description : descriptionVal
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azure_collector",
"version": "1.0.1",
"version": "1.0.2",
"dependencies": {
"async": "*",
"azure": "^2.0.0-preview",
Expand Down

0 comments on commit 1c71317

Please sign in to comment.