monasca-api/monasca_api/common/messaging
Joe Keen 08c200b6a8 Wrapping single metrics in a list on post
For efficiency we're using the Kafka clients send_messages function which takes
a variable number of messages to send and batches them so that they can be read
one at a time.  To do this we use the * operator to expand the list of metrics
as we pass them to the send_messages function.  If the input data is not a list
this doesn't work so even single metrics need to be bundled in a list.

Change-Id: I2f196b37db0db95a5163696f14258a865fa9a615
2015-06-19 17:04:13 -06:00
..
message_formats Wrapping single metrics in a list on post 2015-06-19 17:04:13 -06:00
__init__.py Updated for Falcon 0.2 and clean-up 2015-06-06 21:47:03 -06:00
exceptions.py Updated for Falcon 0.2 and clean-up 2015-06-06 21:47:03 -06:00
fake_publisher.py Updated for Falcon 0.2 and clean-up 2015-06-06 21:47:03 -06:00
kafka_publisher.py Converted to the oslo libraries in pypi 2015-06-12 22:20:32 -06:00
publisher.py Updated for Falcon 0.2 and clean-up 2015-06-06 21:47:03 -06:00