Skip to content

Commit

Permalink
Sdk refresh (#39)
Browse files Browse the repository at this point in the history
* add test branch for al-azure-collector-js

* fix packag.json

* convert ot new sdk

* add other dependency

* update package.json

* try editing funcpack setting

* Add explicit dep for ms-rest-js

* change azure sdk-branch

* bump version to get a new build

* change sdk in ehub

* restore func pack

* update version number for al-azure-collector-js to real npm version
  • Loading branch information
JDragovichAlertLogic authored and kkuzmin committed Nov 5, 2019
1 parent 272d2db commit 0de032d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions common/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* -----------------------------------------------------------------------------
*/

const azure = require('azure');
const {MonitorManagementClient} = require('azure-arm-monitor');
const {EventHubManagementClient} = require('azure-arm-eventhub');
const parse = require('parse-key-value');

const DEFAULT_EHUB_FOR_LOG_NAME = 'alertlogic-log';
Expand All @@ -16,13 +17,13 @@ const DEFAULT_EHUB_FOR_LOG_NAME = 'alertlogic-log';
const initArmMonitor = function(master) {
const azureCreds = master.getApplicationTokenCredentials();
const subscriptionId = master.getConfigAttrs().subscription_id;
return azure.createMonitorManagementClient(azureCreds, subscriptionId);
return new MonitorManagementClient(azureCreds, subscriptionId);
};

const initArmEhub = function(master) {
const azureCreds = master.getApplicationTokenCredentials();
const subscriptionId = master.getConfigAttrs().subscription_id;
return azure.createEventHubManagementClient(azureCreds, subscriptionId);
return new EventHubManagementClient(azureCreds, subscriptionId);
};

const formatSdkError = function (master, alErrorCode, err) {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "ehub-collector",
"version": "1.3.2",
"version": "1.3.3",
"dependencies": {
"@alertlogic/al-azure-collector-js": "1.3.0",
"@alertlogic/al-azure-collector-js": "1.4.0",
"@alertlogic/al-collector-js": "1.3.2",
"azure-arm-eventhub": "3.2.0",
"azure-arm-monitor": "5.4.0",
"async": "2.6.1",
"moment": "2.24.0",
"parse-key-value": "1.0.0"
Expand Down

0 comments on commit 0de032d

Please sign in to comment.