10 Commits

Author SHA1 Message Date
akhiljain23
8ec3b67b77 Add support for using Falcon 2.0.0
Falcon 2.0.0 introduces some breaking changes. The relevant ones here are:

- falcon.testing.TestCase.api property was removed
- falcon.testing.TestBase class was removed

This commit also switches the project to use stestr, update sphinx dependency
and add lower-constraints job

Change-Id: I34255a603c069ed3b1e52017634ff01147473221
Story: 2005695
Task: 35688
2019-07-12 06:39:15 +00:00
Martin Chacon Piza
8c0ddb4f4d Added validations
- Empty events list
- Missing content-type or wrong content-type
- Empty body

Change-Id: I5848dd018aee6b9d95bff7be52eece0ac97b2a49
Story: 2003955
Task: 27036
2018-11-19 12:20:45 +00:00
Adrian Czarnecki
3c5e504ede Refactor devstack-plugin
* Make monasca-event-api devstack plugin compatible
with monaca devstack metrics and logs plugins
* Add monasca-ui
* Enable events visualization in kibana
* By default metrics and logs pipelines are disabled
* Change deployment mode from gunicorn to uwsgi

Story: 2003815
Task: 26569

Depends-On: https://review.openstack.org/#/c/593602/
Change-Id: I7efb969d89f0733bf27517d393cd024750e278a7
2018-11-19 11:43:13 +01:00
Martin Chacon Piza
60b86fff4d Use the tenant_id from context to name the index in ES
Story: 2003955
Task: 26881

Change-Id: I17fc5121f30127ed3e53cc6cdaf904820c65dda8
2018-10-11 10:36:27 +02:00
Witold Bedyk
4b33d1b338 Fix body validation for Python 3
The API should expect timestamp as text, not binary data.

Change-Id: I07a26c09a19a96907da7210b3fb1544a409b562a
Story: 2003240
Task: 26832
2018-10-01 17:39:48 +02:00
Adrian Czarnecki
735a08637a Add mechanism that send msg again if request fail
Improve _publish method to send message again
if first request return FailedPayloadsError.

Change-Id: I2ceb4e55f30a982bfe55ae8dd280ded5eca70704
2018-09-13 13:44:28 +02:00
Amir Mofakhar
f24c310156 changed self oslo.policy enforcement to monasca-common oslo.policy
enforcement engine.

story: 2001233
task: 6199

Change-Id: If78a95f2b454ed4775186e56146d22684d16d983
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>
2018-01-24 10:16:49 +01:00
Artur Basiak
620a477df0 Add events endpoint
Provide basic endpoint:
/v1.0/events/
/healthcheck
/version
Endpoint reads request and returns HTTP code 200.
Provide code to run application in gunicorn mode.

Story: 2001112
Task: 4863

Change-Id: Ic7c344360b5acec5af7751a825e2dff8346cf1f7
Depends-On: I18d9f4ec543c76bfe1311ed1ee940827d4162298
2017-12-18 13:42:02 +01:00
Jakub Wachowski
c3a3b4b765 Create devstack plugin for monasca-events
!Parts of code taken from monasca-api and monasca-log-api!

Also create a dummy implementataion for version endpoint
so that the deployment can be tested.

Story: 2001112
Task: 4808

Change-Id: Ic35f6388c34c4d4c1198401a1c6972b802a54c67
2017-11-08 13:55:10 +01:00
Artur Basiak
32c4560c3b Provide oslo.policies
Add policies to the api based on oslo.policies.
Small changes in documentation. Provide generator for
sample policies file.
Add policies for agent and admin.

Story: 200112
Task: 4807

Depends-On: I76d737bf9d1216b041bc1a518cc2098f28e7da7b
Change-Id: Idf5c4ec1b663ad9ed3ab25744bdf0b7f28cdb1a2
2017-08-01 13:24:09 +02:00