Web API Reference Guide > Available API Methods > Z-Ray Methods > The zrayGetRequestFunctions Method

The zrayGetRequestFunctions Method

Get a list of all functions used in the request and their statistics.

Version: 1.8

Required Permissions: Read-only

HTTP method: GET

Supported Editions: Zend Server

Request parameters:

Parameter

 Type

Required

Description

requestId

Integer

Yes

The request ID of the function information to retrieve.

Expected Response Code: 200 OK. For more information see Response Format.

Response Format: requestInfo and functions

Possible Action Specific Error Codes: This action has no specific error codes

Example

Usage Example

Request (headers removed for the purpose of clarity)

GET /ZendServer/Api/zrayGetRequestFunctions?requestId=14

Response (not all headers are shown)

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.8">

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>zrayGetRequestInfo</method>

</requestData>

<responseData>

<requestInfo>

<id>14</id>

<pageId>5@423545@0</pageId>

<url><![CDATA[http://localhost/mysite/index.php]]></url>

<httpResponse>200</httpResponse>

<method>GET</method>

<runTime>350</runTime>

<startTime>2014-03-06T11:32:00+02:00</startTime>

<startTimeTimestamp>1394098320877</startTimeTimestamp>

<isPrimaryPage>No</isPrimaryPage>

<memoryPeak>53359</memoryPeak>

</requestInfo>

<functions>

<functionStats>

<id>25</id>

<pageId>4</pageId>

<requestId>14</requestId>

<functionName><![CDATA[MyNS\first_function]]></functionName>

<functionScope><![CDATA[MyNS\first_function]]></functionScope>

<functionFull><![CDATA[MyNS\first_function::func]]</functionFull>

<timesCalled>1</timesCalled>

<timeExclusive>0</timeExclusive>

<timeInclusive>6284</timeInclusive>

<filename><![CDATA[/home/mine/files/php/index.php]]></filename>

<line>0</line>

<isInternal>0</isInternal>

</functionStats>

... more functionStats elements

</functions>

</responseData>

</zendServerAPIResponse>

 

Read Also

  Available API Methods    
  Z-Ray Methods