Uploaded image for project: 'Statuspage'
  1. Statuspage
  2. STATUS-565

The Metric ID showing on the Advanced Options page of a custom System Metrics does not align with the response of the "Get a list of metrics" API and cannot be used for "Add data to a metric" API request

XMLWordPrintable

    • 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

      1. Add a new custom System Metrics and obtain the "Metric ID".
      2. Make an API request to the endpoint "Get a list of metrics", and compare the "id" field in the response with this "Metric ID".
      3. 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

      1. The "Metric ID" and the "id" should be the same value.
      2. The API requests to "Add data to a metric" with "Metric ID" should be working.

      Actual Results

      1. The "Metric ID" and the "id" contain different values.
      2. The API requests to "Add data to a metric" only accepts the value of "id" not "Metric ID".

      Workaround

      1. Make a "Get a list of metrics" request to obtain the actual "id" of the wanted custom System metric.
      2. Make the API requests to "Add data to a metric" only with the "id", not "Metric ID".

        1. image-2023-03-27-17-03-47-168.png
          775 kB
          Darryl Lee
        2. image-2023-03-27-17-05-19-907.png
          703 kB
          Darryl Lee
        3. image-2023-03-27-17-07-04-727.png
          269 kB
          Darryl Lee

            Unassigned Unassigned
            dlee4@atlassian.com Darryl Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: