azure-monitoring
Advanced tools
Comparing version 0.9.1-pre.6 to 0.9.1-pre.7
@@ -139,5 +139,5 @@ /* jshint latedef:false */ | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/alertrules/' + ruleName.trim() + '/incidents/' + incidentName.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -251,5 +251,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/alertrules/' + ruleName.trim() + '/incidents?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -417,5 +417,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/alertrules/' + (parameters.properties.name ? parameters.properties.name.trim() : '') + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -613,5 +613,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/alertrules/' + ruleName.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -683,5 +683,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/alertrules/' + ruleName.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -938,3 +938,2 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/alertrules?'; | ||
@@ -945,2 +944,3 @@ url2 = url2 + 'api-version=2014-04'; | ||
} | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -1238,5 +1238,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/alertrules/' + (parameters.properties.name ? parameters.properties.name.trim() : '') + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -1243,0 +1243,0 @@ if (baseUrl[baseUrl.length - 1] === '/') { |
@@ -188,5 +188,5 @@ /* jshint latedef:false */ | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/autoscalesettings/' + autoscaleSettingName.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -438,5 +438,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/autoscalesettings/' + autoscaleSettingName.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -508,5 +508,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/autoscalesettings/' + autoscaleSettingName.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -846,3 +846,2 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/autoscalesettings?'; | ||
@@ -853,2 +852,3 @@ url2 = url2 + 'api-version=2014-04'; | ||
} | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -1262,5 +1262,5 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/resourcegroups/' + resourceGroupName.trim() + '/providers/microsoft.insights/autoscalesettings/' + autoscaleSettingName.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-04'; | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -1267,0 +1267,0 @@ if (baseUrl[baseUrl.length - 1] === '/') { |
@@ -147,6 +147,6 @@ /* jshint latedef:false */ | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/providers/microsoft.insights/metricDefinitions/resource/' + parameters.resourceId.trim() + '?'; | ||
url2 = url2 + 'api-version=2014-01'; | ||
url2 = url2 + '&names=' + encodeURIComponent(parameters.metricNames.join(',')); | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -346,4 +346,4 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var url2 = '/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/services/monitoring/metricsettings'; | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/services/monitoring/metricsettings'; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -485,6 +485,6 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/services/monitoring/metricsettings?'; | ||
url2 = url2 + '&resourceId=' + encodeURIComponent(resourceId.trim()); | ||
url2 = url2 + '&namespace=' + encodeURIComponent(metricNamespace.trim()); | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -695,3 +695,2 @@ if (baseUrl[baseUrl.length - 1] === '/') { | ||
// Construct URL | ||
var baseUrl = this.client.baseUri; | ||
var url2 = '/subscriptions/' + (this.client.credentials.subscriptionId ? this.client.credentials.subscriptionId.trim() : '') + '/providers/microsoft.insights/metrics/resource/' + parameters.resourceId.trim() + '?'; | ||
@@ -703,2 +702,3 @@ url2 = url2 + 'api-version=2014-01'; | ||
url2 = url2 + '&endTime=' + encodeURIComponent(parameters.endTime.toISOString()); | ||
var baseUrl = this.client.baseUri; | ||
// Trim '/' character from the end of baseUrl and beginning of url. | ||
@@ -705,0 +705,0 @@ if (baseUrl[baseUrl.length - 1] === '/') { |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.9.1-pre.6", | ||
"version": "0.9.1-pre.7", | ||
"description": "Windows Azure Monitoring Client Library for node", | ||
@@ -16,0 +16,0 @@ "tags": [ |
Sorry, the diff of this file is too big to display