{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200022","type":"string"},"error_msg":{"description":"错误消息。","example":"实例名称已存在。","type":"string"}},"required":["error_code","error_msg"]},"ListSlowLogResponseBody":{"properties":{"slow_log_list":{"items":{"$ref":"#/definitions/SlowLog"},"type":"array"},"total_record":{"description":"总记录数。","type":"integer"}},"required":["slow_log_list","total_record"]},"SlowLog":{"description":"慢日志信息。","properties":{"client_ip":{"description":"IP地址。","type":"string"},"count":{"description":"执行次数。","type":"string"},"database":{"description":"所属数据库。","type":"string"},"lock_time":{"description":"平均等待锁时间。","type":"string"},"query_sample":{"description":"执行语法。","type":"string"},"rows_examined":{"description":"平均扫描的行数量。","type":"string"},"rows_sent":{"description":"平均结果行数量。","type":"string"},"start_time":{"description":"发生时间,UTC时间。","type":"string"},"time":{"description":"平均执行时间。","type":"string"},"type":{"description":"语句类型。","type":"string"},"users":{"description":"帐号。","type":"string"}},"required":["count","time","lock_time","rows_sent","rows_examined","database","users","query_sample","type","start_time","client_ip"]}},"description":null,"group_id":"b7735f867ef44182af9eb77490a46fbf","host":"rds.cn-north-4.myhuaweicloud.com","id":"9f13bc624ea44fe59269ef8c5afb2b3d","info_version":"v3","method":"get","name":"ListSlowLogs","parameters":{},"paths":{"/v3/{project_id}/instances/{instance_id}/slowlog":{"get":{"description":"查询数据库慢日志。","operationId":"ListSlowLogs","parameters":[{"description":"用户Token。","in":"header","name":"x-auth-token","type":"string","x-example":"******"},{"description":"语言","in":"header","name":"X-Language","type":"string","x-example":"zh-cn"},{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"619d3e78f61b4be68bc5aa0b59edcf7b"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string","x-example":"e73893ef73754465a8bd2e0857bbf13ein01"},{"description":"开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。\n\n其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。","in":"query","name":"start_date","required":true,"type":"string","x-example":"2018-08-06T10:41:14+0800"},{"description":"结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。\n\n其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。只能查询当前时间前一个月内的慢日志。","in":"query","name":"end_date","required":true,"type":"string","x-example":"2018-08-07T10:41:14+0800"},{"description":"页数偏移量,如1、2、3、4等,不填时默认为1。","in":"query","name":"offset","type":"integer"},{"description":"每页多少条记录,取值范围是1~100,不填时默认为10。","in":"query","name":"limit","type":"integer"},{"description":"语句类型,取空值,表示查询所有语句类型。","enum":["INSERT","UPDATE","SELECT","DELETE","CREATE"],"in":"query","name":"type","type":"string"}],"responses":{"200":{"description":"Success.","examples":{"application/json":{"slow_log_list":[{"client_ip":"192.*.*.1","count":"1","database":"mysql","lock_time":"0.00003 s","query_sample":"INSERT INTO time_zone_name (Name, Time_zone_id) VALUES (N, @time_zone_id);","rows_examined":"0","rows_sent":"0","start_time":"2018-08-06T10:41:14","time":"1.04899 s","type":"INSERT","users":"root"}],"total_record":1}},"schema":{"$ref":"#/definitions/ListSlowLogResponseBody"}},"default":{"description":"Client or server error.","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"查询数据库慢日志","tags":["获取日志信息"],"x-constraint":"该接口仅支持MySQL数据库引擎。","x-request-examples-description-1":"","x-request-examples-url-1":"GET https://rds.cn-north-1.myhuaweicloud.com/v3/054e292c9880d4992f02c0196d3ea468/instances/3d39c18788b54a919bab633874c159dfin01/slowlog?start_date=2018-08-06T10:41:14+0800&end_date=2018-08-07T10:41:14+0800","x-support-sdk":"Y"}}},"product_short":"RDS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询数据库慢日志","tags":"获取日志信息","uri":null,"version":"2.0"}