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

endpoint /admin/api/services/_id_/metrics returns also methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.6 ER2
    • System
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • +

      Endpoint for getting metrics returns methods too. I think this is a bug and should be fixed in upcoming version.

      curl -v  -X GET "https://3scale-admin.3scale._domain_/admin/api/services/_service_id/metrics.xml?access_token=_access_token_"
      
      <?xml version="1.0" encoding="UTF-8"?>
      <metrics>
        <metric>
          <id>5467</id>
          <name>hits</name>
          <system_name>hits</system_name>
          <friendly_name>Hits</friendly_name>
          <service_id>627</service_id>
          <description>Number of API hits</description>
          <unit>hit</unit>
        </metric>
        <metric>
          <id>5468</id>
          <name>tbmetrics</name>
          <system_name>tbmetrics</system_name>
          <friendly_name>tbmetrics</friendly_name>
          <service_id>627</service_id>
          <description/>
          <unit>hit</unit>
        </metric>
      
      
      
      
        <method>
          <id>5471</id>
          <name>metodka</name>
          <system_name>metodka</system_name>
          <friendly_name>metodka</friendly_name>
          <service_id>627</service_id>
          <description/>
          <metric_id>5467</metric_id>
        </method>
      
      
      
      
      
        <metric>
          <id>5472</id>
          <name>custom</name>
          <system_name>custom</system_name>
          <friendly_name>custom</friendly_name>
          <service_id>627</service_id>
          <description/>
          <unit>hit</unit>
        </metric>
      </metrics>
      

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

                Created:
                Updated:
                Resolved: