tccli 3.0.1235.1__py2.py3-none-any.whl → 3.0.1237.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +15 -15
  3. tccli/services/apm/v20210622/examples.json +16 -22
  4. tccli/services/ba/v20200720/api.json +3 -2
  5. tccli/services/billing/v20180709/api.json +2 -2
  6. tccli/services/cam/v20190116/api.json +84 -69
  7. tccli/services/cam/v20190116/examples.json +7 -7
  8. tccli/services/ccc/v20200210/api.json +9 -0
  9. tccli/services/cdb/cdb_client.py +53 -0
  10. tccli/services/cdb/v20170320/api.json +43 -0
  11. tccli/services/cdb/v20170320/examples.json +8 -0
  12. tccli/services/cfg/v20210820/api.json +21 -0
  13. tccli/services/cloudapp/v20220530/api.json +10 -0
  14. tccli/services/cloudaudit/v20190319/api.json +43 -36
  15. tccli/services/cloudaudit/v20190319/examples.json +2 -2
  16. tccli/services/cvm/v20170312/api.json +5 -5
  17. tccli/services/cynosdb/cynosdb_client.py +53 -0
  18. tccli/services/cynosdb/v20190107/api.json +110 -0
  19. tccli/services/cynosdb/v20190107/examples.json +8 -0
  20. tccli/services/domain/v20180808/api.json +18 -17
  21. tccli/services/domain/v20180808/examples.json +22 -22
  22. tccli/services/ess/ess_client.py +57 -4
  23. tccli/services/ess/v20201111/api.json +53 -0
  24. tccli/services/ess/v20201111/examples.json +8 -0
  25. tccli/services/essbasic/v20210526/api.json +11 -1
  26. tccli/services/gwlb/v20240906/api.json +16 -16
  27. tccli/services/gwlb/v20240906/examples.json +2 -2
  28. tccli/services/hunyuan/v20230901/api.json +6 -6
  29. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  30. tccli/services/iotexplorer/v20190423/api.json +129 -4
  31. tccli/services/iotexplorer/v20190423/examples.json +14 -0
  32. tccli/services/lcic/v20220817/api.json +3 -3
  33. tccli/services/lcic/v20220817/examples.json +2 -2
  34. tccli/services/lighthouse/v20200324/examples.json +2 -2
  35. tccli/services/live/v20180801/api.json +5 -5
  36. tccli/services/mongodb/v20180408/api.json +52 -40
  37. tccli/services/mongodb/v20180408/examples.json +4 -4
  38. tccli/services/mongodb/v20190725/api.json +119 -109
  39. tccli/services/mongodb/v20190725/examples.json +5 -5
  40. tccli/services/monitor/v20180724/examples.json +1 -1
  41. tccli/services/mqtt/v20240516/api.json +1 -1
  42. tccli/services/mqtt/v20240516/examples.json +1 -1
  43. tccli/services/pts/v20210728/api.json +8 -0
  44. tccli/services/sms/v20210111/api.json +1 -1
  45. tccli/services/ssl/v20191205/examples.json +1 -1
  46. tccli/services/sts/v20180813/examples.json +1 -1
  47. tccli/services/tdid/v20210519/api.json +30 -38
  48. tccli/services/tdid/v20210519/examples.json +5 -5
  49. tccli/services/trocket/v20230308/api.json +3 -3
  50. tccli/services/vpc/v20170312/api.json +22 -3
  51. tccli/services/vpc/v20170312/examples.json +1 -1
  52. tccli/services/vrs/v20200824/api.json +71 -8
  53. tccli/services/vrs/v20200824/examples.json +8 -0
  54. tccli/services/vrs/vrs_client.py +53 -0
  55. tccli/services/wedata/v20210820/api.json +550 -40
  56. tccli/services/wedata/v20210820/examples.json +10 -4
  57. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/METADATA +2 -2
  58. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/RECORD +61 -61
  59. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/WHEEL +0 -0
  60. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/entry_points.txt +0 -0
  61. {tccli-3.0.1235.1.dist-info → tccli-3.0.1237.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1235.1'
1
+ __version__ = '3.0.1237.1'
@@ -1199,16 +1199,7 @@
1199
1199
  "members": [
1200
1200
  {
1201
1201
  "disabled": false,
1202
- "document": "要过滤的维度信息:\nservice_metric视图支持:service.name(服务名)、span.kind(客户端/服务端视角)为维度进行过滤,service.name(服务名)必填。\nspan.kind:\n\tserver:服务端视角\n\tclient:客户端视角\n默认为服务端视角进行查询。\nruntime_metric视图支持:service.name(服务名)维度进行过滤,service.name(服务名)必填。\nsql_metric视图支持:service.name(服务名)、db.instance(数据库名称)、db.ip(数据库实例ip)维度进行过滤,查询service_slow_sql_count(慢sql)指标时service.name必填,查询sql_duration_avg(耗时)指标时db.instance(数据库名称)必填。",
1203
- "example": "{ \"Key\": \"service.name\", \"Value\": \"java-order-service\" } { \"Key",
1204
- "member": "GeneralFilter",
1205
- "name": "Filters",
1206
- "required": true,
1207
- "type": "list"
1208
- },
1209
- {
1210
- "disabled": false,
1211
- "document": "需要查询的指标,不可自定义输入。\nservice_metric视图支持:service_request_count(总请求)、service_duration(平均响应时间)、service_error_req_rate(平均错误率)、service_slow_call_count(慢调用)、service_error_request_count(异常数量)。\nruntime_metric视图支持:service_gc_full_count(Full GC)。\nsql_metric视图支持:service_slow_sql_count(慢sql)、sql_duration_avg(耗时)。",
1202
+ "document": "需要查询的指标名称,不可自定义输入,[详情请见。](https://cloud.tencent.com/document/product/248/101681)",
1212
1203
  "example": "\"service_request_count\"、“service_duration”",
1213
1204
  "member": "string",
1214
1205
  "name": "Metrics",
@@ -1226,7 +1217,7 @@
1226
1217
  },
1227
1218
  {
1228
1219
  "disabled": false,
1229
- "document": "视图名称,不可自定义输入。支持:service_metric、runtime_metric、sql_metric。",
1220
+ "document": "视图名称,不可自定义输入。[详情请见。](https://cloud.tencent.com/document/product/248/101681)",
1230
1221
  "example": "service_metric",
1231
1222
  "member": "string",
1232
1223
  "name": "ViewName",
@@ -1235,7 +1226,16 @@
1235
1226
  },
1236
1227
  {
1237
1228
  "disabled": false,
1238
- "document": "聚合维度:\nservice_metric视图支持:service.name(服务名)、span.kind (客户端/服务端视角)维度进行聚合,service.name(服务名)必填。\nruntime_metric视图支持:service.name(服务名)维度进行聚合,service.name(服务名)必填。\nsql_metric视图支持:service.name(服务名)、db.statement(sql语句)维度进行聚合,查询service_slow_sql_count(慢sql)时service.name(服务名)必填,查询sql_duration_avg(耗时)指标时service.name(服务名)、db.statement(sql语句)必填。",
1229
+ "document": "要过滤的维度信息,不同视图有对应的指标维度,[详情请见。](https://cloud.tencent.com/document/product/248/101681)",
1230
+ "example": "{ \"Key\": \"service.name\", \"Value\": \"java-order-service\" } { \"Key",
1231
+ "member": "GeneralFilter",
1232
+ "name": "Filters",
1233
+ "required": true,
1234
+ "type": "list"
1235
+ },
1236
+ {
1237
+ "disabled": false,
1238
+ "document": "聚合维度,不同视图有对应的指标维度,[详情请见。](https://cloud.tencent.com/document/product/248/101681)",
1239
1239
  "example": "\"service.name\"、\"span.kind\"",
1240
1240
  "member": "string",
1241
1241
  "name": "GroupBy",
@@ -1271,7 +1271,7 @@
1271
1271
  },
1272
1272
  {
1273
1273
  "disabled": false,
1274
- "document": "对查询指标进行排序:\nservice_metric视图支持:service_request_count(总请求)、service_duration(平均响应时间)、service_error_req_rate(平均错误率)、service_slow_call_count(慢调用)、service_error_request_count(异常数量)。\nruntime_metric视图支持:service_gc_full_count(Full GC)。\nsql_metric视图支持:service_slow_sql_count(慢sql)、sql_duration_avg(耗时)。\nasc:对查询指标进行升序排序\ndesc:对查询指标进行降序排序",
1274
+ "document": "对查询指标进行排序:\nKey 填写云 API 指标名称,[详情请见。](https://cloud.tencent.com/document/product/248/101681)\nValue 填写排序方式: \n- asc:对查询指标进行升序排序\n- desc:对查询指标进行降序排序",
1275
1275
  "example": "\"OrderBy\": { \t\"Key\": \"sql_duration_avg\", \"Value\": \"desc\"",
1276
1276
  "member": "OrderBy",
1277
1277
  "name": "OrderBy",
@@ -1296,10 +1296,10 @@
1296
1296
  {
1297
1297
  "disabled": false,
1298
1298
  "document": "指标结果集\n注意:此字段可能返回 null,表示取不到有效值。",
1299
- "example": "",
1299
+ "example": "{ \"Response\": { \"Records\": [ { \"Tags\": [], \"MetricName\": \"sql_duration_avg\", \"MetricNameCN\": \"平均响应时间\", \"TimeSerial\": [ 1734407820, 1734407880, 1734407940, 1734408000, 1734408060, 1734408120, 1734408180, 1734408240, 1734408300, 1734408360, 1734408420, 1734408480, 1734408540, 1734408600, 1734408660, 1734408720, 1734408780, 1734408840, 1734408900, 1734408960, 1734409020, 1734409080, 1734409140, 1734409200, 1734409260, 1734409320, 1734409380, 1734409440, 1734409500, 1734409560, 1734409620, 1734409680, 1734409740, 1734409800, 1734409860, 1734409920, 1734409980, 1734410040, 1734410100, 1734410160, 1734410220, 1734410280, 1734410340, 1734410400, 1734410460, 1734410520, 1734410580, 1734410640, 1734410700, 1734410760, 1734410820, 1734410880, 1734410940, 1734411000, 1734411060, 1734411120, 1734411180, 1734411240, 1734411300, 1734411360 ], \"DataSerial\": [ 135728.648236258, 0.4060175286658243, 0.3906675029805307, 118792.06594650316, 0.4067952115687377, 0.41769455288609775, 0.41074237375891975, 0.40921561817335866, 0.41119494805273527, 135649.09198159442, 0.4107937310707512, 0.41151921192748936, 0.4117117637368341, 0.4152493163439583, 0.5001134962935645, 0.41283469768714603, 0.3979470199363206, 0.4083188880940849, 0.40551133267100636, 0.40927287475939206, 0.41014323602968256, 0.4012277709628799, 0.40407118324057745, 0.40985120011494, 0.4071479930279269, 0.3866005448018421, 0.40619437076582554, 0.40142698225557255, 0.40432155746295745, 0.4120485754463827, 0.40451016228819175, 135425.90797938255, 135542.49266812875, 0.40168924095565, 0.4070559973437187, 0.3987184602563491, 0.4076715755099571, 0.4026033027713935, 118990.898319586, 0.405708522267682, 0.404107562330523, 0.40059895515109356, 0.4049696567832813, 0.40152292066215045, 0.3943229870897469, 0.39939697181964084, 0.42871168611138843, 0.39514465476451965, 0.39055195114837243, 0.39710768149694586, 0.40585406731762813, 0.41346395100750705, 0.4089005831960684, 0.4018122312399444, 0.3928633017418557, 0.41502474452429317, 0.4065864888888889, 0.4112395803749857, 0.4158375517725035, null ] } ], \"RequestId\": \"test-test-test\" } }",
1300
1300
  "member": "Line",
1301
1301
  "name": "Records",
1302
- "required": true,
1302
+ "output_required": true,
1303
1303
  "type": "list",
1304
1304
  "value_allowed_null": true
1305
1305
  },
@@ -34,34 +34,28 @@
34
34
  ],
35
35
  "DescribeGeneralMetricData": [
36
36
  {
37
- "document": "该示例查询实例为apm-ylTJfTSbn,按照service.name(服务名)为维度过滤,以service.name(服务名)进行聚合,查找开始时间-终止时间内以一分钟为聚合粒度的service_gc_full_count(Full GC)的指标数据。",
38
- "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"tapm-api-ap-beijing\"\n }\n ],\n \"ViewName\": \"runtime_metric\",\n \"InstanceId\": \"apm-ylTJfTSbn\",\n \"Period\": 60,\n \"Metrics\": [\n \"service_gc_full_count\"\n ],\n \"StartTime\": \"1652666416\",\n \"EndTime\": \"1652667616\",\n \"GroupBy\": [\n \"service.name\"\n ]\n}",
39
- "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"service_gc_full_count\",\n \"MetricNameCN\": \"full GC\",\n \"TimeSerial\": [\n 1656428160,\n 1656428220,\n 1656428280,\n 1656428340,\n 1656428400,\n 1656428460,\n 1656428520,\n 1656428580,\n 1656428640,\n 1656428700,\n 1656428760,\n 1656428820,\n 1656428880\n ],\n \"DataSerial\": [\n 0.016666666666666666,\n 0,\n 0.016666666666666666,\n 0,\n 0.016666666666666666,\n 0.016666666666666666,\n 0,\n 0.016666666666666666,\n 0,\n 0.016666666666666666,\n 0.016666666666666666,\n 0,\n 0.016666666666666666\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
40
- "title": "查询1分钟聚合粒度的runtime_metric指标数据示例"
37
+ "document": "该示例查询实例为 apm-059oXBfTL,按照 service.name(服务名)、span.kind(客户端/服务端视角)为维度过滤,以 service.name(服务名)、span.kind(客户端/服务端视角)进行聚合,查找开始时间-终止时间内以一分钟为聚合粒度的 request_count(请求数量)、error_request_count(错误请求数量)、duration_avg(平均响应时间)、slow_request_count(慢请求数量)、duration_p50(耗时 p50)的指标数据。",
38
+ "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"ViewName\": \"service_metric\",\n \"InstanceId\": \"apm-059oXBfTL\",\n \"Period\": 60,\n \"Metrics\": [\n \"request_count\",\n \"error_request_count\",\n \"duration_avg\",\n \"slow_request_count\",\n \"duration_p50\"\n ],\n \"StartTime\": 1734415200,\n \"EndTime\": 1734418800,\n \"GroupBy\": [\n \"service.name\",\n \"span.kind\"\n ]\n}",
39
+ "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"request_count\",\n \"MetricNameCN\": \"总请求数\",\n \"TimeSerial\": [\n 1734415200,\n 1734415260,\n 1734415320,\n 1734415380,\n 1734415440,\n 1734415500,\n 1734415560,\n 1734415620,\n 1734415680,\n 1734415740,\n 1734415800,\n 1734415860,\n 1734415920,\n 1734415980,\n 1734416040,\n 1734416100,\n 1734416160,\n 1734416220,\n 1734416280,\n 1734416340,\n 1734416400,\n 1734416460,\n 1734416520,\n 1734416580,\n 1734416640,\n 1734416700,\n 1734416760,\n 1734416820,\n 1734416880,\n 1734416940,\n 1734417000,\n 1734417060,\n 1734417120,\n 1734417180,\n 1734417240,\n 1734417300,\n 1734417360,\n 1734417420,\n 1734417480,\n 1734417540,\n 1734417600,\n 1734417660,\n 1734417720,\n 1734417780,\n 1734417840,\n 1734417900,\n 1734417960,\n 1734418020,\n 1734418080,\n 1734418140,\n 1734418200,\n 1734418260,\n 1734418320,\n 1734418380,\n 1734418440,\n 1734418500,\n 1734418560,\n 1734418620,\n 1734418680,\n 1734418740\n ],\n \"DataSerial\": [\n 22,\n 32,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 32,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 26,\n 28,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 32,\n 12,\n 22,\n 22,\n 32,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 22,\n 32,\n 22,\n 12,\n 22,\n 22\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n }\n ],\n \"MetricName\": \"error_request_count\",\n \"MetricNameCN\": \"异常数量\",\n \"TimeSerial\": [\n 1734415200,\n 1734415260,\n 1734415320,\n 1734415380,\n 1734415440,\n 1734415500,\n 1734415560,\n 1734415620,\n 1734415680,\n 1734415740,\n 1734415800,\n 1734415860,\n 1734415920,\n 1734415980,\n 1734416040,\n 1734416100,\n 1734416160,\n 1734416220,\n 1734416280,\n 1734416340,\n 1734416400,\n 1734416460,\n 1734416520,\n 1734416580,\n 1734416640,\n 1734416700,\n 1734416760,\n 1734416820,\n 1734416880,\n 1734416940,\n 1734417000,\n 1734417060,\n 1734417120,\n 1734417180,\n 1734417240,\n 1734417300,\n 1734417360,\n 1734417420,\n 1734417480,\n 1734417540,\n 1734417600,\n 1734417660,\n 1734417720,\n 1734417780,\n 1734417840,\n 1734417900,\n 1734417960,\n 1734418020,\n 1734418080,\n 1734418140,\n 1734418200,\n 1734418260,\n 1734418320,\n 1734418380,\n 1734418440,\n 1734418500,\n 1734418560,\n 1734418620,\n 1734418680,\n 1734418740\n ],\n \"DataSerial\": [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [\n 1734415200,\n 1734415260,\n 1734415320,\n 1734415380,\n 1734415440,\n 1734415500,\n 1734415560,\n 1734415620,\n 1734415680,\n 1734415740,\n 1734415800,\n 1734415860,\n 1734415920,\n 1734415980,\n 1734416040,\n 1734416100,\n 1734416160,\n 1734416220,\n 1734416280,\n 1734416340,\n 1734416400,\n 1734416460,\n 1734416520,\n 1734416580,\n 1734416640,\n 1734416700,\n 1734416760,\n 1734416820,\n 1734416880,\n 1734416940,\n 1734417000,\n 1734417060,\n 1734417120,\n 1734417180,\n 1734417240,\n 1734417300,\n 1734417360,\n 1734417420,\n 1734417480,\n 1734417540,\n 1734417600,\n 1734417660,\n 1734417720,\n 1734417780,\n 1734417840,\n 1734417900,\n 1734417960,\n 1734418020,\n 1734418080,\n 1734418140,\n 1734418200,\n 1734418260,\n 1734418320,\n 1734418380,\n 1734418440,\n 1734418500,\n 1734418560,\n 1734418620,\n 1734418680,\n 1734418740\n ],\n \"DataSerial\": [\n 191.5860133181818,\n 191.2110746363636,\n 191.23246599999996,\n 191.5040949090909,\n 191.934274,\n 192.05015977272723,\n 191.4917418636364,\n 191.7598401818182,\n 191.47329104545454,\n 191.35408840909093,\n 191.7695753181818,\n 192.1501132727273,\n 191.6614135,\n 191.72522395454544,\n 193.92501624242422,\n 209.9224584090909,\n 192.50587436363637,\n 193.14908313636363,\n 200.8337476363636,\n 192.21551695454545,\n 191.87317959090907,\n 191.85476931818184,\n 192.0314575909091,\n 192.14624168181817,\n 192.0624055,\n 192.35865707575758,\n 191.87331737878793,\n 191.806969,\n 192.35163881818187,\n 192.29478813636362,\n 192.3707790454545,\n 191.8557721363636,\n 191.59646177272725,\n 191.55687904545456,\n 191.59595163636365,\n 191.84944554545453,\n 191.78630649999997,\n 191.91973590909092,\n 191.90514081818182,\n 191.9165850909091,\n 191.98103199999997,\n 191.98323287878785,\n 193.0803381818182,\n 192.14093727272729,\n 192.24286899999998,\n 192.6753041818182,\n 192.2717468636364,\n 192.41461836363635,\n 192.3725805,\n 191.84485977272726,\n 191.85852840909092,\n 191.86218731818178,\n 191.6467590454545,\n 191.52699904545452,\n 191.57099809090911,\n 192.2197160909091,\n 191.91881845454546,\n 191.98860699999997,\n 224.0602859090909,\n 192.05223709090907\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"slow_request_count\",\n \"MetricNameCN\": \"慢调用\",\n \"TimeSerial\": [\n 1734415200,\n 1734415260,\n 1734415320,\n 1734415380,\n 1734415440,\n 1734415500,\n 1734415560,\n 1734415620,\n 1734415680,\n 1734415740,\n 1734415800,\n 1734415860,\n 1734415920,\n 1734415980,\n 1734416040,\n 1734416100,\n 1734416160,\n 1734416220,\n 1734416280,\n 1734416340,\n 1734416400,\n 1734416460,\n 1734416520,\n 1734416580,\n 1734416640,\n 1734416700,\n 1734416760,\n 1734416820,\n 1734416880,\n 1734416940,\n 1734417000,\n 1734417060,\n 1734417120,\n 1734417180,\n 1734417240,\n 1734417300,\n 1734417360,\n 1734417420,\n 1734417480,\n 1734417540,\n 1734417600,\n 1734417660,\n 1734417720,\n 1734417780,\n 1734417840,\n 1734417900,\n 1734417960,\n 1734418020,\n 1734418080,\n 1734418140,\n 1734418200,\n 1734418260,\n 1734418320,\n 1734418380,\n 1734418440,\n 1734418500,\n 1734418560,\n 1734418620,\n 1734418680,\n 1734418740\n ],\n \"DataSerial\": [\n 2,\n 3,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 3,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 3,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 3,\n 1,\n 2,\n 2,\n 3,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 2,\n 3,\n 2,\n 1,\n 2,\n 2\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"duration_p50\",\n \"MetricNameCN\": \"P50 响应时间\",\n \"TimeSerial\": [\n 1734415200,\n 1734415260,\n 1734415320,\n 1734415380,\n 1734415440,\n 1734415500,\n 1734415560,\n 1734415620,\n 1734415680,\n 1734415740,\n 1734415800,\n 1734415860,\n 1734415920,\n 1734415980,\n 1734416040,\n 1734416100,\n 1734416160,\n 1734416220,\n 1734416280,\n 1734416340,\n 1734416400,\n 1734416460,\n 1734416520,\n 1734416580,\n 1734416640,\n 1734416700,\n 1734416760,\n 1734416820,\n 1734416880,\n 1734416940,\n 1734417000,\n 1734417060,\n 1734417120,\n 1734417180,\n 1734417240,\n 1734417300,\n 1734417360,\n 1734417420,\n 1734417480,\n 1734417540,\n 1734417600,\n 1734417660,\n 1734417720,\n 1734417780,\n 1734417840,\n 1734417900,\n 1734417960,\n 1734418020,\n 1734418080,\n 1734418140,\n 1734418200,\n 1734418260,\n 1734418320,\n 1734418380,\n 1734418440,\n 1734418500,\n 1734418560,\n 1734418620,\n 1734418680,\n 1734418740\n ],\n \"DataSerial\": [\n 10,\n 10,\n 9.375,\n 14,\n 14,\n 14,\n 10,\n 9.375,\n 9.285714285714285,\n 9.166666666666668,\n 10,\n 14,\n 14,\n 14,\n 15.714285714285714,\n 14.444444444444445,\n 14,\n 14,\n 14.444444444444445,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 13.333333333333332,\n 16.153846153846153,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 15.333333333333332,\n 16.666666666666664,\n 14,\n 14,\n 15.333333333333332,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 14,\n 15.333333333333332,\n 14,\n 10,\n 14.444444444444445,\n 14\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
40
+ "title": "查询1分钟聚合粒度的 service_metric 指标数据示例"
41
41
  },
42
42
  {
43
- "document": "该示例查询实例为apm-ylTJfTSbn,按照service.name(服务名)、span.kind(客户端/服务端视角)为维度过滤,以service.name(服务名)进行聚合,查找开始时间-终止时间内以一分钟为聚合粒度的service_request_count(总请求)、service_duration(平均响应时间)、service_error_req_rate(平均错误率)、service_slow_call_count(慢调用)、service_error_request_count(异常数量)的指标数据。",
44
- "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"tapm-api-ap-beijing\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"ViewName\": \"service_metric\",\n \"InstanceId\": \"apm-ylTJfTSbn\",\n \"Period\": 60,\n \"Metrics\": [\n \"service_request_count\",\n \"service_duration\",\n \"service_error_req_rate\",\n \"service_slow_call_count\",\n \"service_error_request_count\"\n ],\n \"StartTime\": \"1652666416\",\n \"EndTime\": \"1652667616\",\n \"GroupBy\": [\n \"service.name\",\n \"span.kind\"\n ]\n}",
45
- "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"service_request_count\",\n \"MetricNameCN\": \"总请求数\",\n \"TimeSerial\": [\n 1656428160,\n 1656428220,\n 1656428280,\n 1656428340,\n 1656428400,\n 1656428460,\n 1656428520,\n 1656428580,\n 1656428640,\n 1656428700,\n 1656428760,\n 1656428820,\n 1656428880\n ],\n \"DataSerial\": [\n 10372,\n 10578,\n 10430,\n 10486,\n 10393,\n 10509,\n 10556,\n 10443,\n 10560,\n 10491,\n 10417,\n 10507,\n 10447\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"service_duration\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [\n 1656428160,\n 1656428220,\n 1656428280,\n 1656428340,\n 1656428400,\n 1656428460,\n 1656428520,\n 1656428580,\n 1656428640,\n 1656428700,\n 1656428760,\n 1656428820,\n 1656428880\n ],\n \"DataSerial\": [\n 68.27933527571001,\n 75.1680976742024,\n 73.70498622754624,\n 74.37902912946632,\n 75.79610287066045,\n 77.2206395084234,\n 69.26122643544272,\n 69.63079755913704,\n 65.73752328654751,\n 76.56275573601707,\n 70.60296113316045,\n 71.30283125911086,\n 70.25328283510882\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"service_error_req_rate\",\n \"MetricNameCN\": \"平均错误率\",\n \"TimeSerial\": [\n 1656428160,\n 1656428220,\n 1656428280,\n 1656428340,\n 1656428400,\n 1656428460,\n 1656428520,\n 1656428580,\n 1656428640,\n 1656428700,\n 1656428760,\n 1656428820,\n 1656428880\n ],\n \"DataSerial\": [\n 1.3594292325491708,\n 1.0115333711476648,\n 1.2655800575263663,\n 1.077627312607286,\n 1.1738670258828057,\n 1.1704253497002568,\n 1.1841606669192877,\n 1.0916403332375753,\n 1.0700757575757576,\n 0.9246020398436755,\n 1.12316405875012,\n 1.1040258875035691,\n 1.206087872116397\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"service_slow_call_count\",\n \"MetricNameCN\": \"慢调用\",\n \"TimeSerial\": [\n 1656428160,\n 1656428220,\n 1656428280,\n 1656428340,\n 1656428400,\n 1656428460,\n 1656428520,\n 1656428580,\n 1656428640,\n 1656428700,\n 1656428760,\n 1656428820,\n 1656428880\n ],\n \"DataSerial\": [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"service_error_request_count\",\n \"MetricNameCN\": \"错误数\",\n \"TimeSerial\": [\n 1656428160,\n 1656428220,\n 1656428280,\n 1656428340,\n 1656428400,\n 1656428460,\n 1656428520,\n 1656428580,\n 1656428640,\n 1656428700,\n 1656428760,\n 1656428820,\n 1656428880\n ],\n \"DataSerial\": [\n 141,\n 107,\n 132,\n 113,\n 122,\n 123,\n 125,\n 114,\n 113,\n 97,\n 117,\n 116,\n 126\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
46
- "title": "查询1分钟聚合粒度的service_metric指标数据示例"
43
+ "document": "该示例查询实例为 apm-059oXBfTL,按照 service.name(服务名)、span.kind(客户端/服务端视角)为维度过滤,以 service.name(服务名)、span.kind(客户端/服务端视角)进行聚合,查找开始时间-终止时间内以一分钟为聚合粒度的 request_count(请求数量)、error_request_count(错误请求数量)、duration_avg(平均响应时间)、slow_request_count(慢请求数量)、duration_p50(耗时 p50)的指标数据。",
44
+ "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"ViewName\": \"service_metric\",\n \"InstanceId\": \"apm-059oXBfTL\",\n \"Metrics\": [\n \"request_count\",\n \"error_request_count\",\n \"duration_avg\",\n \"slow_request_count\",\n \"duration_p50\"\n ],\n \"StartTime\": 1734415200,\n \"EndTime\": 1734418800,\n \"GroupBy\": [\n \"service.name\",\n \"span.kind\"\n ]\n}",
45
+ "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"request_count\",\n \"MetricNameCN\": \"总请求数\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 1360\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"error_request_count\",\n \"MetricNameCN\": \"异常数量\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 0\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 192.96957006641412\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"slow_request_count\",\n \"MetricNameCN\": \"慢调用\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 124\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"MetricName\": \"duration_p50\",\n \"MetricNameCN\": \"P50 响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 13.443708609271523\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
46
+ "title": "查询起始到终止时间内统计 service_metric 指标数据示例"
47
47
  },
48
48
  {
49
- "document": "该示例查询实例为apm-ylTJfTSbn,按照service.name(服务名)、span.kind(客户端/服务端视角)为维度过滤,以service.name(服务名)进行聚合,查找开始时间-终止时间内的service_request_count(总请求)、service_duration(平均响应时间)、service_error_req_rate(平均错误率)、service_slow_call_count(慢调用)、service_error_request_count(异常数量)的指标数据。",
50
- "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"tapm-api-ap-beijing\"\n },\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n }\n ],\n \"ViewName\": \"service_metric\",\n \"InstanceId\": \"apm-ylTJfTSbn\",\n \"Period\": \"0\",\n \"Metrics\": [\n \"service_request_count\",\n \"service_duration\",\n \"service_error_req_rate\",\n \"service_slow_call_count\",\n \"service_error_request_count\"\n ],\n \"StartTime\": \"1652666416\",\n \"EndTime\": \"1652667616\",\n \"GroupBy\": [\n \"service.name\",\n \"span.kind\"\n ]\n}",
51
- "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"service_request_count\",\n \"MetricNameCN\": \"总请求数\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 630381\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"service_duration\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 72.44506470564654\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"service_error_req_rate\",\n \"MetricNameCN\": \"平均错误率\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 1.1464495281425042\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"service_slow_call_count\",\n \"MetricNameCN\": \"慢调用\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 0\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"span.kind\",\n \"Value\": \"client\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"service_error_request_count\",\n \"MetricNameCN\": \"错误数\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 7227\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
52
- "title": "查询起始到终止时间内统计service_metric指标数据示例"
49
+ "document": "该示例查询实例为 apm-059oXBfTL,按照 service.name(服务名)为维度过滤,以 service.name(服务名)进行聚合,查找开始时间-终止时间内以一分钟为聚合粒度的 error_request_count(错误请求数量)、duration_avg(平均响应时间)的指标数据。",
50
+ "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n }\n ],\n \"ViewName\": \"sql_metric\",\n \"InstanceId\": \"apm-059oXBfTL\",\n \"Period\": 60,\n \"Metrics\": [\n \"error_request_count\",\n \"duration_avg\"\n ],\n \"StartTime\": 1734415200,\n \"EndTime\": 1734418800,\n \"GroupBy\": [\n \"service.name\"\n ]\n}",
51
+ "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n }\n ],\n \"MetricName\": \"error_request_count\",\n \"MetricNameCN\": \"错误数\",\n \"TimeSerial\": [\n 1734415200,\n 1734415260,\n 1734415320,\n 1734415380,\n 1734415440,\n 1734415500,\n 1734415560,\n 1734415620,\n 1734415680,\n 1734415740,\n 1734415800,\n 1734415860,\n 1734415920,\n 1734415980,\n 1734416040,\n 1734416100,\n 1734416160,\n 1734416220,\n 1734416280,\n 1734416340,\n 1734416400,\n 1734416460,\n 1734416520,\n 1734416580,\n 1734416640,\n 1734416700,\n 1734416760,\n 1734416820,\n 1734416880,\n 1734416940,\n 1734417000,\n 1734417060,\n 1734417120,\n 1734417180,\n 1734417240,\n 1734417300,\n 1734417360,\n 1734417420,\n 1734417480,\n 1734417540,\n 1734417600,\n 1734417660,\n 1734417720,\n 1734417780,\n 1734417840,\n 1734417900,\n 1734417960,\n 1734418020,\n 1734418080,\n 1734418140,\n 1734418200,\n 1734418260,\n 1734418320,\n 1734418380,\n 1734418440,\n 1734418500,\n 1734418560,\n 1734418620,\n 1734418680,\n 1734418740\n ],\n \"DataSerial\": [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [\n 1734415200,\n 1734415260,\n 1734415320,\n 1734415380,\n 1734415440,\n 1734415500,\n 1734415560,\n 1734415620,\n 1734415680,\n 1734415740,\n 1734415800,\n 1734415860,\n 1734415920,\n 1734415980,\n 1734416040,\n 1734416100,\n 1734416160,\n 1734416220,\n 1734416280,\n 1734416340,\n 1734416400,\n 1734416460,\n 1734416520,\n 1734416580,\n 1734416640,\n 1734416700,\n 1734416760,\n 1734416820,\n 1734416880,\n 1734416940,\n 1734417000,\n 1734417060,\n 1734417120,\n 1734417180,\n 1734417240,\n 1734417300,\n 1734417360,\n 1734417420,\n 1734417480,\n 1734417540,\n 1734417600,\n 1734417660,\n 1734417720,\n 1734417780,\n 1734417840,\n 1734417900,\n 1734417960,\n 1734418020,\n 1734418080,\n 1734418140,\n 1734418200,\n 1734418260,\n 1734418320,\n 1734418380,\n 1734418440,\n 1734418500,\n 1734418560,\n 1734418620,\n 1734418680,\n 1734418740\n ],\n \"DataSerial\": [\n 504.4455225,\n 504.49955074999997,\n 504.50165175000006,\n 504.55699425,\n 504.5483053749999,\n 504.547519,\n 504.73789837500004,\n 504.46199262500005,\n 504.1922,\n 504.22497787500004,\n 504.18011225000004,\n 504.04929475,\n 504.14939112499997,\n 504.45689225,\n 504.4441259166667,\n 504.4853475,\n 504.55031125,\n 504.458504875,\n 504.49732837499994,\n 504.50629599999996,\n 504.439337,\n 504.272122,\n 504.267848625,\n 504.28821525,\n 504.268522875,\n 504.28563437500003,\n 504.25491391666674,\n 504.20538062500003,\n 504.54045425000004,\n 504.67349375000003,\n 504.71599025,\n 504.54132337499993,\n 504.69503825,\n 504.74425037500004,\n 504.637164375,\n 504.62155600000006,\n 504.628113,\n 505.07725949999997,\n 504.65562800000004,\n 504.443061375,\n 504.420146125,\n 504.41736325000005,\n 507.28285875,\n 504.59916025,\n 504.50750687499993,\n 504.67656166666666,\n 504.687698625,\n 504.7468005,\n 504.728723,\n 504.71881125,\n 504.6750935,\n 504.45997087499995,\n 504.48766912499997,\n 504.5063645,\n 504.670277625,\n 504.88526525,\n 505.09475625,\n 505.13066475,\n 505.103745375,\n 505.101275\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
52
+ "title": "查询1分钟聚合粒度的 sql_metric 指标数据示例"
53
53
  },
54
54
  {
55
- "document": "该示例查询实例为apm-ylTJfTSbn,按照service.name(服务名)为维度过滤,以service.name(服务名)进行聚合,查找开始时间-终止时间内以一分钟为聚合粒度的service_slow_sql_count(慢sql)的指标数据。",
56
- "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"tapm-api-ap-beijing\"\n }\n ],\n \"ViewName\": \"sql_metric\",\n \"InstanceId\": \"apm-ylTJfTSbn\",\n \"Period\": 60,\n \"Metrics\": [\n \"service_slow_sql_count\"\n ],\n \"StartTime\": \"1652666416\",\n \"EndTime\": \"1652667616\",\n \"GroupBy\": [\n \"service.name\"\n ]\n}",
57
- "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"service_slow_sql_count\",\n \"MetricNameCN\": \"\",\n \"TimeSerial\": [\n 1656428160,\n 1656428220,\n 1656428280,\n 1656428340,\n 1656428400,\n 1656428460,\n 1656428520,\n 1656428580,\n 1656428640,\n 1656428700,\n 1656428760,\n 1656428820,\n 1656428880\n ],\n \"DataSerial\": [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
58
- "title": "查询1分钟聚合粒度的sql_metric的service_slow_sql_count(慢调用sql)指标数据示例"
59
- },
60
- {
61
- "document": "该示例查询实例为apm-ylTJfTSbn,按照db.instance(数据库名称)、(db.ip)数据库实例ip为维度过滤,以service.name(服务名)、db.statement(sql语句)为维度进行聚合,查找开始时间-终止时间内top5的sql_duration_avg(耗时(ms))的指标数据。",
62
- "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"db.instance\",\n \"Value\": \"mock_project_db\"\n },\n {\n \"Key\": \"db.ip\",\n \"Value\": \"9.147.18.42\"\n }\n ],\n \"ViewName\": \"sql_metric\",\n \"InstanceId\": \"apm-ylTJfTSbn\",\n \"Metrics\": [\n \"sql_duration_avg\"\n ],\n \"StartTime\": \"1652666416\",\n \"EndTime\": \"1652667616\",\n \"GroupBy\": [\n \"service.name\",\n \"db.statement\"\n ],\n \"OrderBy\": {\n \"Key\": \"sql_duration_avg\",\n \"Value\": \"desc\"\n },\n \"PageSize\": 5\n}",
63
- "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * om un_exist_table limit 1\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"sql_duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 29.883333333333333\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * om un_exist_table limit 1\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-user-service\"\n }\n ],\n \"MetricName\": \"sql_duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 26.170082239670673\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * from un_exist_table limit 1\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-market-service\"\n }\n ],\n \"MetricName\": \"sql_duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 25.654237574773983\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * from mock_project_userinfo where id = ? limit 1\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-order-service\"\n }\n ],\n \"MetricName\": \"sql_duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 24.333649579223025\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * from un_exist_table limit 1\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"java-user-service\"\n }\n ],\n \"MetricName\": \"sql_duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": null,\n \"DataSerial\": [\n 22.785741520925463\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
64
- "title": "查询起始到终止时间内统计sql_metric的sql_duration_avg(耗时时间)指标数据示例"
55
+ "document": "该示例查询实例为apm-059oXBfTL,按照 db.instance(数据库名称)为维度过滤,以 service.name(服务名)、db.statement(执行语句)为维度进行聚合,查找开始时间-终止时间内 top5 的 duration_avg(耗时(ms))的指标数据。",
56
+ "input": "POST / HTTP/1.1\nHost: apm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGeneralMetricData\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"db.instance\",\n \"Value\": \"mock_project_db\"\n }\n ],\n \"ViewName\": \"sql_metric\",\n \"InstanceId\": \"apm-059oXBfTL\",\n \"Metrics\": [\n \"duration_avg\"\n ],\n \"StartTime\": 1734415200,\n \"EndTime\": 1734418800,\n \"GroupBy\": [\n \"service.name\",\n \"db.statement\"\n ],\n \"OrderBy\": {\n \"Key\": \"sql_duration_avg\",\n \"Value\": \"desc\"\n },\n \"PageSize\": 5\n}",
57
+ "output": "{\n \"Response\": {\n \"Records\": [\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select sleep(?)\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 2005.583661869444\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-stock-service\"\n },\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select dept, count(dept) as total from mock_project_userinfo\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 5.746467460185185\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select dept, count(dept) as total from mock_project_userinfo\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-user-service\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 5.719407256481479\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * from mock_project_userinfo\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-order-service\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 5.677464627777778\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * from mock_project_userinfo\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-delivery-service\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 5.636013505555556\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select * om un_exist_table limit ?\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-delivery-service\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 5.514262441666669\n ]\n },\n {\n \"Tags\": [\n {\n \"Key\": \"db.statement\",\n \"Value\": \"select dept, count(dept) as total from mock_project_userinfo\"\n },\n {\n \"Key\": \"service.name\",\n \"Value\": \"ot-java-market-service\"\n }\n ],\n \"MetricName\": \"duration_avg\",\n \"MetricNameCN\": \"平均响应时间\",\n \"TimeSerial\": [],\n \"DataSerial\": [\n 5.44814345277778\n ]\n }\n ],\n \"RequestId\": \"test-test-test\"\n }\n}",
58
+ "title": "查询起始到终止时间内统计 sql_metric duration_avg(耗时时间)指标数据示例"
65
59
  }
66
60
  ],
67
61
  "DescribeGeneralSpanList": [
@@ -35,7 +35,7 @@
35
35
  {
36
36
  "disabled": false,
37
37
  "document": "代理角色临时密钥的Token",
38
- "example": "",
38
+ "example": "yN8d0VyOqBvljYQw0MC",
39
39
  "member": "string",
40
40
  "name": "SessionKey",
41
41
  "required": true,
@@ -50,9 +50,10 @@
50
50
  {
51
51
  "disabled": false,
52
52
  "document": "渠道备案小程序二维码",
53
- "example": "",
53
+ "example": "https://beianapi.cloud.tencent.com/?exchangeSkey=yN8d0VyOqBvljYQw0MC",
54
54
  "member": "string",
55
55
  "name": "Url",
56
+ "output_required": true,
56
57
  "type": "string",
57
58
  "value_allowed_null": false
58
59
  },
@@ -8271,7 +8271,7 @@
8271
8271
  "value_allowed_null": false
8272
8272
  },
8273
8273
  {
8274
- "disabled": false,
8274
+ "disabled": true,
8275
8275
  "document": "是否允许欠费消费",
8276
8276
  "example": "true",
8277
8277
  "member": "bool",
@@ -8281,7 +8281,7 @@
8281
8281
  "value_allowed_null": false
8282
8282
  },
8283
8283
  {
8284
- "disabled": false,
8284
+ "disabled": true,
8285
8285
  "document": "是否限制信用额度",
8286
8286
  "example": "true",
8287
8287
  "member": "bool",