Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-7474

methods are listed in metrics API endpoint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 2.11.0 CR1
    • System
    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • +
    • undefined
    • Hide

      1. create some methods and metrics in one product
      2. try to get metrics via API for the product

      Show
      1. create some methods and metrics in one product 2. try to get metrics via API for the product

      It seems that there are again methods listed in metric API endpoint result. They are listed in both xml and json results:

      $ curl -X GET "https://_domain_/admin/api/services/3337/metrics.json?access_token=_token_" -k | jq .
      {
        "metrics": [
          {
            "metric": {
              "id": 8090,
              "name": "hits",
              "system_name": "hits",
              "friendly_name": "Hits",
              "description": "Number of API hits",
              "unit": "hit",
              "created_at": "2021-08-23T11:48:23Z",
              "updated_at": "2021-08-23T11:48:23Z",
              "links": [
                {
                  "rel": "service",
                  "href": "https://_domain_/admin/api/services/3337"
                },
                {
                  "rel": "self",
                  "href": "https://_domain_/admin/api/services/3337/metrics/8090"
                }
              ]
            }
          },
          {
            "metric": {
              "id": 8122,
              "name": "hitiky",
              "system_name": "hitiky",
              "friendly_name": "Hitiky",
              "description": "",
              "unit": "hit",
              "parent_id": 8090,
              "created_at": "2021-08-24T10:34:17Z",
              "updated_at": "2021-08-24T10:34:17Z",
              "links": [
                {
                  "rel": "service",
                  "href": "https://_domain_/admin/api/services/3337"
                },
                {
                  "rel": "self",
                  "href": "https://_domain_/admin/api/services/3337/metrics/8122"
                }
              ]
            }
          },
          {
            "metric": {
              "id": 8123,
              "name": "hitiky2",
              "system_name": "hitiky2",
              "friendly_name": "Hitiky2",
              "description": "",
              "unit": "hit",
              "parent_id": 8090,
              "created_at": "2021-08-24T10:34:27Z",
              "updated_at": "2021-08-24T10:34:27Z",
              "links": [
                {
                  "rel": "service",
                  "href": "https://_domain_/admin/api/services/3337"
                },
                {
                  "rel": "self",
                  "href": "https://_domain_/admin/api/services/3337/metrics/8123"
                }
              ]
            }
          },
          {
            "metric": {
              "id": 8124,
              "name": "ggg",
              "system_name": "ggg",
              "friendly_name": "ggg",
              "description": "",
              "unit": "hit",
              "created_at": "2021-08-24T10:34:43Z",
              "updated_at": "2021-08-24T10:34:43Z",
              "links": [
                {
                  "rel": "service",
                  "href": "https://_domain_/admin/api/services/3337"
                },
                {
                  "rel": "self",
                  "href": "https://_domain_/admin/api/services/3337/metrics/8124"
                }
              ]
            }
          }
        ]
      }
      

              Unassigned Unassigned
              mkudlej@redhat.com Martin Kudlej
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: