All Products
Search
Document Center

:GetRetcodeDataByQuery

Last Updated:Apr 28, 2023

Queries the browser monitoring data based on the query statement of Log Service.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PidstringYes

The ID of the application.

Log on to the ARMS console. In the left-side navigation pane, choose Browser Monitoring > Browser Monitoring. On the Browser Monitoring page, click the name of an application. The URL in the address bar contains the process ID (PID) of the application. The PID is indicated in the pid=xxx format. The PID is usually percent encoded as xxx%40xxx. You must modify this value to remove the percent encoding. For example, if the PID in the URL is eb4zdose6v%409781be0f44d****, you must replace %40 with an at sign (@) to obtain eb4zdose6v@9781be0f44d****.

atc889zkcf@d8deedfa9bf****
QuerystringYes

The query statement that conforms to the query syntax of the Log Service Logstore.

t : pv|select sum(times) as pv , approx_distinct(uid) as uv , (date-date%3600000) as date group by date
FromlongYes

The time when the query starts. This value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

1668687302
TolongYes

The time when the query ends. This value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

1668688000
RegionIdstringYes

The ID of the region in which the application is located.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

2A0CEDF1-06FE-44AC-8E21-21A5BE65****
Codestring

The HTTP status code returned for the request. Valid values:

  • 2XX: The request was successful.
  • 3XX: A redirection message was returned.
  • 4XX: The request was invalid.
  • 5XX: A server error occurred.
200
Messagestring

The error message returned if the call fails.

Internal error. Please try again. Contact the DingTalk service account if the issue persists after multiple retries.
Successboolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.
true
Datastring

The browser monitoring data returned for a successful call.

{"total":0,"auth":false,"pageSize":20,"completed":true,"page":1,"items":[]}

Examples

Sample success responses

JSONformat

{
  "RequestId": "2A0CEDF1-06FE-44AC-8E21-21A5BE65****",
  "Code": "200",
  "Message": "Internal error. Please try again. Contact the DingTalk service account if the issue                              persists after multiple retries.",
  "Success": true,
  "Data": "{\"total\":0,\"auth\":false,\"pageSize\":20,\"completed\":true,\"page\":1,\"items\":[]}"
}

Error codes

For a list of error codes, visit the Service error codes.