search cancel

API Portal: Metrics API not working

book

Article ID: 202397

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Developer Portal

Issue/Introduction

When using a client to pull API Metrics, there are the following errors.

API request:

curl -L -X GET 'https://apim-ssg.DOMAIN.com:9443/cis/latency/apis?timerange=week&startDate=%3Cstring%3E&endDate=%3Cstring%3E&apiIds=%3Cstring%3E&appIds=%3Cstring%3E&orgIds=%3Cstring%3E&proxyIds=%3Cstring%3E&buckets=%3Cstring%3E&sortorder=desc&sortby=avg&limit=%3Cstring%3E&stats=%3Cstring%3E' \

-H 'APIM-OrgUuid: <Org_Uuid>' \

-H 'Authorization: Bearer <token>

 

API Response:

{
 "error": {
          "code": "NotFoundException",
          "message": {
                      "lang": "en-US",
                      "value": "EdmEntitySet latency is not found"
                     }
         }

}

Environment

API Portal: 4.5

API Gateway: 9.3

Resolution

The URL was incorrect. It should look like the following:

https://PORTAL_TENANT_ID-ssg.PORTAL_DOMAIN:9443/analytics/metrics/v1/latency/apis