-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2
-
Severity 3 - Minor
Issue Summary
On the "Advanced Options" page of a custom System Metric, there is a "Metric ID" provided. However, it is different from the "id" value obtained from the "Get a list of metrics" API request and it doesn't existing in any fields in the response.
In addition, the API request to "Add data to a metric" with using this "Metric ID" provided on the page, it will return a 404 error.
Meanwhile, the same request using the "id" retrieved from the "Get a list of metrics" API request, it works.
Steps to Reproduce
- Add a new custom System Metrics and obtain the "Metric ID".
- Make an API request to the endpoint "Get a list of metrics", and compare the "id" field in the response with this "Metric ID".
- Make an API request to the endpoint "Add data to a metric" with the "Metric ID" and "id" respectively, and observe the results.
Expected Results
- The "Metric ID" and the "id" should be the same value.
- The API requests to "Add data to a metric" with "Metric ID" should be working.
Actual Results
- The "Metric ID" and the "id" contain different values.
- The API requests to "Add data to a metric" only accepts the value of "id" not "Metric ID".
Workaround
- Make a "Get a list of metrics" request to obtain the actual "id" of the wanted custom System metric.
- Make the API requests to "Add data to a metric" only with the "id", not "Metric ID".