* set the maximum line length to 100
* cleaned up the codes for pep8
* removed pep8 check ignores
Change-Id: I5d3e2f13117638b0a8af051b9faa64ce1a2dd04e
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>
When specify OPENSTACK_SSL_NO_VERIFY = False, monascaclient
throws an exception when access alarms, alarm definitions
and notifictions. Changed parameter cert to verify so it
takes boolean or passes the certificate file.
Also added unit tests for api.client
Story: 2001601
Task: 6555
Change-Id: Ib068bdc3fae1ebdb2bda8d7b6c24a725cef5b24b
Depends-On: https://review.openstack.org/550130
In some part in the code we use \ for multiline formatting. In the Openstack
style guidelines they recommend to use ().
[1]: "It is preferred to wrap long lines in parentheses and not a backslash
for line continuation.".
[1] https://docs.openstack.org/hacking/latest/user/hacking.html
Change-Id: I0c34cd9343e07aaec3bf543e9a1828db55d07246
In overall following change adjustes monasca-ui code to the
shape of the python-monascaclient (integrated with osc-lib,
see Depends-On for details).
Extra:
- added profiling capabilities
- added caching of client instances
- installing master python-monascaclient for test purposes
- supporting installing python-monascaclient if specified via Depends-On
Depends-On: I1712a24739438e2d8331a495f18f357749a633c5
Change-Id: I01d0f3d9814376f9358feb23494e1ca5231aedac
This patch enable to select new notification types.
But translation notification types will be unsupported.
Note this translation constraints as bug to below launchpad,
to develop in future.
https://bugs.launchpad.net/monasca/+bug/1657673
Change-Id: I47dd187d2efc71a53d64307821b0420a00935bc0
Alarms for dimensions that contain spaces (like hostnames)
aren't displayed if we simply remove spaces from the dimension
values. URLs are already encoded and spaces get translated
properly in get_relative_url() in views.py.
Change-Id: I576c9ed7fb62acfb2c7cb8f84360438d82dafbaf
Closes-Bug: 1492003
For example: mount_point=/
Django can't handle encoded URI correctly,
so this implementation uses base64url.
And allow filter alarms with dimensions having only key.
Change-Id: Ie23403278d4791c702abffd855cf0682510ac153
Following commit provides multi-step
wizard to create new alarm definitions
along with several improvements:
* verifying uniqueness of alarm definition's
name right in the first step of the wizard
* compact expression widget
* setting notifications as optional step
Note:
Following refactor is required for the compound
expressions (a.k.a. multiple) that will require
more space in UI than it was available in
the single form.
Needed-By: I1b4bd51e8887bc44dd3e2ffab4900d29fc77b77e
Change-Id: I30d9b78a407554ce5edea8fda7421428adc1de40
* add simple proxy for kibana requests
* organize settings in `local_settings.py`
* narrow down coverage to monitoring package
* fix requirements with stable versions
* upgrade Horizon
Change-Id: I618485e9b6fa11fe423c3b1b3ad5f8c02cc163b4
this change removes the CORS aspects for graphana reports
and also the tokens that were used / needed, in favor or
proxying the data requests through horizon
Change-Id: Ie80e19ece3931428550f14250fcaeb4e88850662
Closes-Bug: #1436087