Allow colon in dimension key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Monasca |
New
|
Medium
|
Unassigned |
Bug Description
This Bugfix is based on https:/
The monasca-api spec definition for dimensions allows the following (https:/
The dimension key and value strings may include any characters except the following: > < = { } ( ) , ' " \ ; &
There is no restriction on using COLON ':'.
__Expected behaviour:__
Querying for metrics with dimensions where the key and value contain a COLON is possible.
Example Query parameter:
{'start_time': '2017-02-
In this situation the dimensions should be parsed as:
key: service:url, value: http://
key: service:name, value: monasca-api
__Observed behaviour:__
The dimension key-value pair is always splitted on the first occurred colon:
key: service, value: url:http://
key: service, name: monasca-api
To be able to understand what is the key and what is the value, we need to introduce a new syntax for defining dimensions.
For example we could surround them with quotes like:
{'start_time': '2017-02-
Quotes are already forbidden.
The change must be downward compatible. All old incoming request should be treated as it is now.