Domain name for API request: apm.intl.tencentcloudapi.com.
Query sampling configuration
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeApmSampleConfig. |
| Version | Yes | String | Common Params. The value used for this API: 2021-06-22. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Business system ID |
| SampleName | No | String | Sampling rule name. |
| Parameter Name | Type | Description |
|---|---|---|
| ApmSampleConfigs | Array of ApmSampleConfig | Sampling configuration list Note: This field may return null, indicating that no valid values can be obtained. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Query specified sampling policy info in a business system
POST / HTTP/1.1
Host: apm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeApmSampleConfig
<Common request parameters>
{
"InstanceId": "apm-eDyXPD6FF",
"SampleName": "CreateOrderInterfaceAllSample"
}
{
"Response": {
"ApmSampleConfigs": [
{
"Id": 2147483657,
"InstanceKey": "apm-eDyXPD6FF",
"OperationName": "/order/create",
"OperationType": 0,
"SampleName": "CreateOrderInterfaceAllSample",
"SampleRate": 100,
"ServiceName": "java-order-service",
"SpanNum": 0,
"Status": 1,
"Tags": []
}
],
"RequestId": "ed09bedf-974f-4f06-9c10-62ae396ec70b"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| FailedOperation.InstanceNotFound | The apm business system does not exist. |
| FailedOperation.SampleNotFound | No such a sampling rule. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan