commit a6ca935665aef3cf00b8a01ca8d4fb4becf1051f
Author: Fei Long Wang <email address hidden>
Date: Wed Aug 14 21:40:57 2013 +0800
Raise error when period with negative value
Based on current implement, when use launch below REST API:
GET http://10.1.0.175:8777/v2/meters/port/statistics?period=-1
The result will be 200 OK. No any error reports. This query
should not allow negative value setting but 400 error, and
prompts like this: "Period must be positive.". Just like
setting "Limit" to negative.
Reviewed: https:/ /review. openstack. org/41926 github. com/openstack/ ceilometer/ commit/ a6ca935665aef3c f00b8a01ca8d4fb 4becf1051f
Committed: http://
Submitter: Jenkins
Branch: master
commit a6ca935665aef3c f00b8a01ca8d4fb 4becf1051f
Author: Fei Long Wang <email address hidden>
Date: Wed Aug 14 21:40:57 2013 +0800
Raise error when period with negative value
Based on current implement, when use launch below REST API: 10.1.0. 175:8777/ v2/meters/ port/statistics ?period= -1
GET http://
The result will be 200 OK. No any error reports. This query
should not allow negative value setting but 400 error, and
prompts like this: "Period must be positive.". Just like
setting "Limit" to negative.
Fixes bug 1212159
Change-Id: I8d547fdf8faae2 094b24c81da6b23 3b432bc99ae