All Products
Search
Document Center

Application Real-Time Monitoring Service:GetStack

Last Updated:Nov 05, 2024

Queries the information of a method stack.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
arms:GetStacknone
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
TraceIDstringYes

The trace ID. You can log on to the Application Real-Time Monitoring Service (ARMS) console and obtain the trace ID on the Trace Query page.

0a5800611641470044457853******
RegionIdstringYes

The region ID.

cn-hangzhou
RpcIDstringYes

The ID of the remote procedure call (RPC) mode. You can obtain the ID by calling the GetTrace operation.

0.1
PidstringYes

The process identifier (PID) of the application. For more information about how to obtain the PID, see Obtain the PID of an application.

eb4zdose6v@36bab313a******
StartTimelongNo

The start time of the call method.

1653555396
EndTimelongNo

The end time of the call method.

1653641800

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

B34C3A43-A901-5F94-9DAD-758CE4******
StackInfoarray<object>

The information of the method stack.

StackInfoobject
StartTimelong

The start time of the call method.

1653555396
Exceptionstring

The error message.

java.lang.NullPointerException
Apistring

The name of the operation.

Tomcat Servlet Process
Linestring

The number of rows in the method stack information.

34
Durationlong

The duration. Unit: milliseconds.

32
RpcIdstring

The ID of the RPC mode.

0.1
ServiceNamestring

The name of the service.

/com/test
ExtInfoobject

The information about the array object.

Typestring

The type of the custom parameter.

41
Infostring

The content of the custom parameter.

input=254275&amp;

Examples

Sample success responses

JSONformat

{
  "RequestId": "B34C3A43-A901-5F94-9DAD-758CE4******",
  "StackInfo": [
    {
      "StartTime": 1653555396,
      "Exception": "java.lang.NullPointerException",
      "Api": "Tomcat Servlet Process",
      "Line": "34",
      "Duration": 32,
      "RpcId": "0.1",
      "ServiceName": "/com/test",
      "ExtInfo": {
        "Type": "41",
        "Info": "input=254275&amp;"
      }
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-10-08The request parameters of the API has changed. The response structure of the API has changedView Change Details