All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

If you are using a respond mediator in the In sequence, you need to include the APIMgtResponseHandler before the respond mediator to be able to publish the statistics.

Code Block
<sequence xmlns="http://ws.apache.org/ns/synapse" name="admin--Test:v1.0.0--In">
   <call blocking="true">
      <endpoint>
         <http method="GET" uri-template="http://www.mocky.io/v2/5d01e59f3100005100ab2a62abc.com">
            <timeout>
               <duration>120000</duration>
               <responseAction>fault</responseAction>
            </timeout>
         </http>
      </endpoint>
   </call>
 
   <property name="ENDPOINT_ADDRESS" value="http://abc.com"/> 
   <class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
   <respond/>
</sequence>

Make sure that you add the ENDPOINT_ADDRESS parameter to populate the destination address for statistics (API Usage by Destination) as shown in the example below.

Code Block
<property name="ENDPOINT_ADDRESS" value="http://abc.com"/>