Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
resourceIds can't end with /, we use ~ instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jkremser committed Aug 21, 2015
1 parent 1c015a7 commit 8e1328b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module HawkularMetrics {

var triggerId: string = this.resourceId + '_jvm_pheap';
var resourceId: string = triggerId.slice(0,-10);
var dataId: string = 'MI~R~[' + resourceId + '~/]~MT~WildFly Memory Metrics~Heap Used';
var dataId: string = 'MI~R~[' + resourceId + '~~]~MT~WildFly Memory Metrics~Heap Used';

return this.HawkularAlertsManager.createAlertDefinition({
name: triggerId,
Expand All @@ -104,7 +104,7 @@ module HawkularMetrics {

var triggerId: string = this.resourceId + '_jvm_nheap';
var resourceId: string = triggerId.slice(0,-10);
var dataId: string = 'MI~R~[' + resourceId + '~/]~MT~WildFly Memory Metrics~Heap Used';
var dataId: string = 'MI~R~[' + resourceId + '~~]~MT~WildFly Memory Metrics~Heap Used';

return this.HawkularAlertsManager.createAlertDefinition({
name: triggerId,
Expand All @@ -128,7 +128,7 @@ module HawkularMetrics {
// Jvm trigger doesn't exist, need to create one
var triggerId: string = this.resourceId + '_jvm_garba';
var resourceId: string = triggerId.slice(0,-10);
var dataId: string = 'MI~R~[' + resourceId + '~/]~MT~WildFly Memory Metrics~Accumulated GC Duration';
var dataId: string = 'MI~R~[' + resourceId + '~~]~MT~WildFly Memory Metrics~Accumulated GC Duration';

return this.HawkularAlertsManager.createAlertDefinition({
name: triggerId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module HawkularMetrics {
var p = HawkularInventory.FeedResource.get({
environmentId: globalEnvironmentId,
feedId: idParts[0],
resourceId: $route.current.params.resourceId + '~/'
resourceId: $route.current.params.resourceId + '~~'
}).$promise;
p.then((response) => {
return response;
Expand Down

0 comments on commit 8e1328b

Please sign in to comment.