Comment 1 for bug 1315819

Revision history for this message
Eoghan Glynn (eglynn) wrote : Re: ceilometer has no constraint of maximum of IntegerType

Agreed, very large *positive* periods should be truncated to the number of seconds since the epoch if necessary (otherwise the value is meaningless).

But I don't think your example above is correct, specifically the large *negative* period. This fails verification as expected:

api.log: 2014-05-08 14:30:34.806 3071 WARNING wsme.api [-] Client-side error: Invalid input for field/attribute evaluation_periods. Value: '-1000000000000000000000000000000000000000000000000'. Value should be greater or equal to 1

response: {"error_message": {"debuginfo": null, "faultcode": "Client", "faultstring": "Invalid input for field/attribute evaluation_periods. Value: '-1000000000000000000000000000000000000000000000000'. Value should be greater or equal to 1"}}