Publishing API analytics to Developer Portal

The integrated gateways can provide the transactional events of published APIs in Developer Portal to allow users to view the API analytics in Developer Portal.

Procedure

  1. Make a REST call to the following endpoint:
    POST	 /rest/v1/events/transactions
    Sample request
    POST /rest/v1/events/transactions  {
        "request": null,
        "nativeHttpMethod": "get",
        "apiName": "petstore1",
        "responseCode": 200,
        "apiVersion": 1.0,
        "providerTime": 4711,
        "apiId": "842c3e33-5c4b-4abf-b827-1a194affde50",
        "applicationName": "Sample",
        "applicationIp": "127.0.0.1",
        "consumerId": "567f89cb-8182-3272-b69e-5d8532eb3ac5",
        "totalTime": 6264,
        "operationName": "/pet/findByStatus",
        "totalSize": 4663,
        "response": "******Some String response******",
        "applicationId": "6179b933-1382-4e1a-becc-239dcfeaaa6d",
        "consumerName": "john.doe@sample.com"
    }
  2. View the analytics from the Developer Portal dashboard.