Description of problem:I see a little inconsistency between endpoint URIs being used to PUT metric data and trait data. Version-Release number of selected component (if applicable): RHQ 4.8-master Actual results: you can push raw metrics by doing PUT metric/data/{scheduleId}/raw/{timeStamp} with body {'scheduleId'12345,'value':123,'timeStamp':12345678} pushing trait metric is however done by PUT metric/data/{scheduleId}/trait with body {'value':'trait value'} this is inconsistent in 2 things 1. when pushing numeric metric, API consumer does not know, which scheduleId and timeStamp is relevant (is it the one in resource path or body?) 2. when pushing trait, consumer can send only value without being able to specify timestamp Expected results: 2 endpoints are consistent (following way): PUT metric/data/{scheduleId}/raw/{timeStamp} with body {'value':123} PUT metric/data/{scheduleId}/trait/{timeStamp} with body {'value':'trait value'} Additional info:
Created attachment 754310 [details] Patch fixing this issue Heiko, please check attached patch that fixes this issue
master 25eb665838cba2
Bulk close of old bugs in VERIFIED state.