接口请求域名: apm.intl.tencentcloudapi.com 。
查询应用配置信息
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeGeneralApmApplicationConfig。 |
| Version | 是 | String | 公共参数,本接口取值:2021-06-22。 |
| Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
| ServiceName | 是 | String | 应用名 |
| InstanceId | 是 | String | 业务系统ID |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| ApmApplicationConfigView | ApmApplicationConfigView | 应用配置项 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查询指定业务系统下应用的配置信息
POST / HTTP/1.1
Host: apm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeGeneralApmApplicationConfig
<公共请求参数>
{
"InstanceId": "apm-6xYKFXYxo",
"ServiceName": "java-order-service"
}
{
"Response": {
"ApmApplicationConfigView": {
"InstanceKey": "apm-059oXBfTL",
"ServiceName": "profile-service",
"OperationNameFilter": "",
"ExceptionFilter": "",
"ErrorCodeFilter": "",
"EventEnable": false,
"UrlConvergenceSwitch": 1,
"UrlConvergenceThreshold": 500,
"UrlConvergence": "RPCServer/market.MarketService2/(.*?)",
"UrlExclude": "",
"IsRelatedLog": 0,
"LogSource": "CLS",
"LogSet": "",
"LogTopicID": "",
"SnapshotEnable": true,
"SnapshotTimeout": 2000,
"AgentEnable": true,
"DisableMemoryUsed": 90,
"DisableCpuUsed": 90,
"InstrumentList": [
{
"Name": "dubbo",
"Enable": true
},
{
"Name": "googlehttpclient",
"Enable": true
},
{
"Name": "grpc",
"Enable": true
},
{
"Name": "httpclient3",
"Enable": true
},
{
"Name": "httpclient4",
"Enable": true
},
{
"Name": "hystrix",
"Enable": true
},
{
"Name": "lettuce",
"Enable": true
},
{
"Name": "mongodb",
"Enable": true
},
{
"Name": "mybatis",
"Enable": true
},
{
"Name": "mysql",
"Enable": true
},
{
"Name": "okhttp",
"Enable": true
},
{
"Name": "redis",
"Enable": true
},
{
"Name": "rxjava",
"Enable": true
},
{
"Name": "spring-webmvc",
"Enable": true
},
{
"Name": "tomcat",
"Enable": true
}
],
"TraceSquash": true
},
"RequestId": "test-test-test0980990"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| FailedOperation | 操作失败。 |
| FailedOperation.AppIdNotMatchInstanceInfo | AppID 和业务系统信息不匹配。 |
| FailedOperation.InstanceNotFound | APM 业务系统不存在。 |
| FailedOperation.InvalidServiceName | 业务系统和应用名不匹配。 |
文档反馈