Skip to content

Commit

Permalink
HAWKULAR-83 Accommodate new metrics changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtho11 committed Mar 20, 2015
1 parent 5ce3b4f commit 860a829
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 24 deletions.
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"!dist/*"
],
"dependencies": {
"angular-resource": "~1.3.11",
"angular": "~1.3.11"
"angular-resource": "1.3.15",
"angular": "1.3.15"
},
"devDependencies": {
"angular-mocks": "~1.3.11",
"angular-mocks": "1.3.15",
"hawtio-core-dts": "2.0.11"
}
}
12 changes: 3 additions & 9 deletions dist/hawkular-ui-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ var hawkularRest;
method: 'GET',
isArray: true,
params: { type: 'avail' }
},
queryLog: {
method: 'GET',
isArray: true,
params: { type: 'log' }
}
});
factory.NumericMetric = $resource(url + '/:tenantId/metrics/numeric', {
Expand All @@ -218,13 +213,12 @@ var hawkularRest;
}, {
queryMetrics: {
method: 'GET',
isArray: false,
params: { type: 'num' }
isArray: true
},
queryMetricsTimeRange: {
method: 'GET',
isArray: false,
params: { type: 'num', buckets: 60, start: '@startTimestamp', end: '@endTimestamp' }
isArray: true,
params: { buckets: 60, start: '@startTimestamp', end: '@endTimestamp' }
}
});
factory.NumericMetricMeta = $resource(url + '/:tenantId/metrics/numeric/:numericId/meta', {
Expand Down
2 changes: 1 addition & 1 deletion dist/hawkular-ui-service.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/rest/hawkRest-metric-factory.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Factory: hawkMetric', function() {
it('should create a tenant', function() {
var tenantId = 'myTenantId';

$httpBackend.expectPOST(prefix + '/rhq-metrics/tenants')
$httpBackend.expectPOST(prefix + '/hawkular-metrics/tenants')
.respond(200);
var result = HawkularRest.Tenant.create({tenantId: tenantId});

Expand All @@ -26,7 +26,7 @@ describe('Factory: hawkMetric', function() {
it('should create a metric', function() {
var tenantId = 'myTenantId';

$httpBackend.expectGET(prefix + '/rhq-metrics/' + tenantId + '/metrics')
$httpBackend.expectGET(prefix + '/hawkular-metrics/' + tenantId + '/metrics')
.respond([{
name: 'mock.metric',
metadata: {
Expand Down
12 changes: 3 additions & 9 deletions src/rest/hawkRest-metric-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ module hawkularRest {
method: 'GET',
isArray: true,
params: { type: 'avail' }
},
queryLog: {
method: 'GET',
isArray: true,
params: { type: 'log' }
}
});

Expand All @@ -80,13 +75,12 @@ module hawkularRest {
}, {
queryMetrics: {
method: 'GET',
isArray: false,
params: {type: 'num'}
isArray: true
},
queryMetricsTimeRange: {
method: 'GET',
isArray: false,
params: {type: 'num', buckets: 60, start: '@startTimestamp', end: '@endTimestamp'}
isArray: true,
params: {buckets: 60, start: '@startTimestamp', end: '@endTimestamp'}
}
});

Expand Down

0 comments on commit 860a829

Please sign in to comment.