It was failed that putting multibyte character into
alarm definition name and description by monascaclient.
There were some mistakes about treatment of utf8 encoding.
And mysql connection had no utf8 option, so mysql could not
handle multibyte character.
Change-Id: I8743f89fcc5d5efd4e50f440b76d78abc037e8e7
Monasca tempest test list_metrics_names_with_dimensions was
failing on both vertica 7.2.1 and vertica 8.0.0 because in
the java api code it doesn't have the metric dimension part
join into the query.
Change-Id: Ifd9be561acd275a3019075af96f94d1ebea57b86
Closes-Bug: #1657512
Ignores the usual timestamp limitations for admin users. This will allow backfilling
data through the api, as well as migrations between dbs using the api to pull and post.
Change-Id: I72374d45421a6c53f57362c7f62db4ae6df4d6b2
Added influx group by for multiple dimensions
Added vertica group by for multiple dimensions
Added tempest tests for group by with one, multiple, and all dimensions
Change-Id: I69c27198ab180e17b7636bbd0f26fc1bd5292f3b
This endpoint will return all the dimension names for a given metric
name.
Added dimension-names for influx in python api and java api
Added dimension-names for vertica in java api
Depends-On: Id981dafd00778a6d4a376b9ceab011231e94c0c6
Change-Id: I0192ccb9276ea94103a477bd2ad7d10f21e64d31
Implements: blueprint dimensions-api
Since returned metric names are distinct, we can remove the id from
each element. Also change the returned metric name into alphabetical
order.
Change-Id: Id981dafd00778a6d4a376b9ceab011231e94c0c6
If a measurement lands exactly on a second boundary, it
could be excluded from the proper statistics bucket.
Also changed influx statistics queries to only return
periods where data exists.
Change-Id: I13355662e36ab1d3535dd1cebbe7d4ec128e1cd0
The transaction was being left open if a Notification with the
same name and tenant id already existed. This would cause different
views of the MySQL database in a cluster of Monasca APIs
Add tests using Mockito that the transaction is closed and rollback
or commit wsa called when required
Also fix the formatting of previously added code to match the
standards
Change-Id: Iaa4ca1e78dec3c76d139d77a7844b810267fd978
Closes-Bug: #1617097
Fix influx statistics query to include the timestamp offset
Fix monasca_tempest_tests.tests.api.test_statistics.TestStatistics.test_list_statistics_with_offset_limit by
assuming offset is an opaque value and making sure it is urldecoded and urlencoded as it should be. Also,
previously, the test was trying to use an offset returned by measurement-list and apply it to metric-statistics.
That is not required to work by the API definition and should not be attempted
There was a bug in the Java parsing of timestamps which was causing
2016-08-05T17:33:13.310Z to be converted to 2016-08-05T17:33:13.031Z. This caused
Alarm Histories to be appear to be out of order which caused the tests to fail randomly.
Fixed that bug and added unit tests
Change-Id: Iedccae6584e01c56cc05dcc45f9b124cb7d61109
This is because currently we do not so they can be lowercase
or mixed case once they get to the validation call which then
will not look at the email or webhook addresses
Change-Id: I99cc704d33956d8709ac40f7fbc69496bafe90d7
This will allow dashboard/operator users to see but not add data.
Change-Id: I16a2329356cc9e7d03d2f3e1394127006d6e487e
Implements: blueprint read-only-api-user
We are changing AlarmNotifcationMethodType from Enum to String in
monasca-common. This causes compilation error in Monasca-Api. This
review avoids that comilation error. This review needs to be merged
before monasca-common
Change-Id: I4717e60ba7bb1035684f49154cb566a972f65deb
This review
1) Removes the hard coded notification types
2) Adds a new Rest API to get the notification types
Partially-implements: blueprint notification-engine-plugin
Change-Id: Ie043533974f9dcf60c77093c5d6df5eced99e68b
This endpoint will return all the dimension values for a given
dimension name and optional metric name (for the scoped project).
This will allow grafana templating to use this (much faster call)
instead of making a full metric-list call and then parsing out
dimensions.
Change-Id: Ia1e2487fe0f96dee03d97d865c58a3728b43f448
Implements: blueprint dimensions-api
To allow notification webhooks to access the Top Level Domain (TLD) of test,
the validation of Webhook addresses was changed to allow urls of the form
http://test.test. However, the validation incorrectly rejects urls with
a port, for example, http://test.test:4343
Changed the regular expression to handle the optional port. I think the
UrlValidator should have stripped it off before presenting it to
the validator, but it doesn't so the regular expression has to handle the
port
Added tempest test to verify API works with a TLD of test with and without
port
Change-Id: Ie95b4ec3c13f3f6b54aab390e234227bc81d8be9
Closes-bug: 1597070
Reduce the number of definitions to store in memory
for statistics and measurements. This should
alleviate the memory issues.
Change-Id: Iccab1207f4d0dfb4bc2823d0bf8e963adc801bcc
In an install with an upgraded database, we have seen
is_deterministic being returned as a Short. This causes a
ClassCastException so handle by usin the new
Conversions.variantToBoolean from monasca-common.
Change-Id: I932607ca7219dc85c754ce7cc698c43fcf2bb2b6
Commit fixes pagination in ORM
for AlarmDefinitions repository
Additionally:
- allow to use MySQL database in tests
Change-Id: I1021641df8c00e673ea47a3c919c8149d86bb190
Update docs with new command
Move validation of the period field to the setter for
java api which is called by jackson as it constructs the
command objects.
Add tempest tests for patching
Change-Id: I7f31aa059601c0390c42b0f5bdf4091706f6660d
QA teams have requested the ability to use the Top Level Domain (TLD)
.test for webhook testing. Using .test is valid according to RFC-2606
but the Apache URL Validator does not allow it. Add an override for
the .test TLD.
Change-Id: Ie5801d0a84199a84b7121b002bda5398cfec3b89