Skip to content

Commit

Permalink
Add queryMetrics and queryMetricsTimeRange methods to NumericMetricDa…
Browse files Browse the repository at this point in the history
…ta factory.
  • Loading branch information
mtho11 committed Feb 18, 2015
1 parent d6ed085 commit cdb7a81
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/rest/hawkRest-metric-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,24 @@ module hawkularRest {
tenantId : '@tenantId'
});

factory.NumericMetricData = $resource(prefix + '/rhq-metrics/:tenantId/metrics/numeric/:numericId/data', {
tenantId : '@tenantId',
numericId : '@numericId'

factory['NumericMetricData'] = $resource(prefix + '/:tenantId/metrics/numeric/:numericId/data', {
tenantId: '@tenantId',
numericId: '@numericId'
}, {
queryMetrics: {
method: 'GET',
isArray: false,
params: {type: 'num'}
},
queryMetricsTimeRange: {
method: 'GET',
isArray: false,
params: {type: 'num', buckets: 60, start: '@startTimestamp', end: '@endTimestamp'}
}
});


factory.NumericMetricMeta = $resource(prefix + '/rhq-metrics/:tenantId/metrics/numeric/:numericId/meta', {
tenantId : '@tenantId',
numericId : '@numericId'
Expand Down

0 comments on commit cdb7a81

Please sign in to comment.