OpenStack Telemetry (Ceilometer)
Go to file
ZhiQiang Fan 8f3f15b6d1 Fix incorrect trait initialization
Currently, when we try to get trait, the api service uses storage
data to directly initialize the trait model. However, the trait class
init method expects value field as wsme.text type, while in storage,
it could be int, float, or datetime. So, end user will get 400 error
in such scenarios.

The static method _convert_storage_trait() in Event class can convert
a storage trait data to api trait object, we can use it to fix this
bug. Also, this method should be in Trait class instead of Event class,
This patch does this refactor too.

Change-Id: Ia7bf667967a31a3cc6e8d457f3b6330ffc728471
Closes-Bug: #1324523
2014-06-11 11:01:48 +08:00
bin Remove (c) and remove unnecessary encoding lines 2014-05-31 13:02:21 +02:00
ceilometer Fix incorrect trait initialization 2014-06-11 11:01:48 +08:00
doc Merge "Update Measurement Docs for LBaaS" 2014-06-10 14:03:40 +00:00
etc Drop deprecated api v1 2014-05-18 16:17:01 +02:00
nova_tests Remove (c) and remove unnecessary encoding lines 2014-05-31 13:02:21 +02:00
tools Remove (c) and remove unnecessary encoding lines 2014-05-31 13:02:21 +02:00
.coveragerc test code should be excluded from test coverage summary 2013-12-11 11:40:51 -05:00
.gitignore Ignore the generated file ceilometer.conf.sample 2014-05-29 11:13:26 +08:00
.gitreview Update .gitreview for openstack. 2012-11-11 19:13:08 +00:00
.testr.conf Removes per test testr timeout 2014-06-09 19:43:23 +02:00
CONTRIBUTING.rst Switch to pbr. 2013-05-11 12:44:54 -04:00
LICENSE include a copy of the ASL 2.0 2013-03-15 14:25:48 +00:00
MAINTAINERS Fix some spelling mistakes and a incorrect url 2014-03-06 11:28:50 +08:00
README.rst Rename README.md to README.rst 2013-07-14 21:09:38 +02:00
ReleaseNotes Update documentation URL 2012-12-05 10:22:43 +01:00
babel.cfg Ground work for transifex-ify ceilometer. 2012-12-18 10:14:03 +08:00
openstack-common.conf Clean up openstack-common.conf 2014-05-08 20:09:09 +08:00
requirements.txt Updated from global requirements 2014-05-20 12:59:42 -04:00
setup-test-env.sh Refactored run-tests script 2014-02-10 15:30:25 +02:00
setup.cfg Metering LoadBalancer as a Service 2014-06-09 15:29:52 -07:00
setup.py Updated from global requirements 2014-05-20 12:59:42 -04:00
test-requirements.txt Updated from global requirements 2014-05-28 16:26:48 +00:00
tox.ini Merge "Clean tox.ini" 2014-06-08 06:14:26 +00:00

README.rst

ceilometer

See the ReleaseNotes document and the project home for more info.

http://launchpad.net/ceilometer