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>
- is related to
-
THREESCALE-4938 Service Metric Read API endpoint returns parent metric id only in XML
- Closed
- relates to
-
THREESCALE-7474 methods are listed in metrics API endpoint
- Closed