{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"MysqlSlowLogStatisticsItem":{"properties":{"client_ip":{"description":"IP地址。","type":"string"},"count":{"description":"执行次数。","type":"string"},"database":{"description":"所属数据库。","type":"string"},"lock_time":{"description":"等待锁时间。mysql支持","type":"string"},"query_sample":{"description":"执行语法。","type":"string"},"rows_examined":{"description":"扫描的行数量。mysql支持","format":"int64","type":"integer"},"rows_sent":{"description":"结果行数量。mysql支持","format":"int64","type":"integer"},"time":{"description":"执行时间。","type":"string"},"type":{"description":"语句类型。","type":"string"},"users":{"description":"帐号。","type":"string"}},"type":"object"},"MysqlSlowLogStatisticsResponse":{"properties":{"slow_log_list":{"description":"数据集合。","items":{"$ref":"#/definitions/MysqlSlowLogStatisticsItem"},"type":"array"},"total_count":{"description":"总条数。","format":"int32","type":"integer"}},"type":"object"},"SlowLogStatisticsForLtsRequest":{"description":"查询实例的慢日志对象","properties":{"database":{"description":"数据库名称。","type":"string"},"end_time":{"description":"结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。\n其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。只能查询当前时间前一个月内的慢日志。","type":"string"},"limit":{"description":"每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。","type":"integer"},"offset":{"description":"索引位置,偏移量。默认为0,表示从第一条数据开始查询。","type":"integer"},"order":{"description":"排序顺序。默认desc。","enum":["desc","asc"],"type":"string"},"sort":{"description":"指定排序字段。\"executeTime\",表示按照执行时间降序排序。字段为空或传入其他值,表示按照执行次数降序排序。","type":"string"},"start_time":{"description":"开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。\n其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。","type":"string"},"type":{"description":"语句类型,取空值,表示查询所有语句类型。","enum":["INSERT","UPDATE","SELECT","DELETE","CREATE","ALL"],"type":"string"}},"required":["start_time","end_time"],"type":"object"}},"description":null,"group_id":"b7735f867ef44182af9eb77490a46fbf","host":"rds.cn-north-4.myhuaweicloud.com","id":"46396a751dab45b3b6711d35ffc27158","info_version":"v3","method":"post","name":"ListSlowLogStatisticsForLts","parameters":{},"paths":{"/v3.1/{project_id}/instances/{instance_id}/slow-logs/statistics":{"post":{"description":"查询实例慢日志的统计数据。","operationId":"ListSlowLogStatisticsForLts","parameters":[{"description":"租户在某一region下的project ID。获取方法请参见获取项目ID。","in":"path","name":"project_id","required":true,"type":"string"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"语言。默认en-us。","enum":["zh-cn","en-us"],"in":"header","name":"X-Language","required":false,"type":"string"},{"description":"用户token。","in":"header","name":"X-Auth-Token","required":true,"type":"string"},{"description":"查询条件。","in":"body","name":"request","required":true,"schema":{"$ref":"#/definitions/SlowLogStatisticsForLtsRequest"}}],"responses":{"200":{"description":"","examples":{"application/json":{"slow_log_list":[{"client_ip":"100.*.*.247","count":"9 (100.00%)","database":"test_db","lock_time":"0.00000 s","query_sample":"SELECT sleep(N) LIMIT N, N;","rows_examined":0,"rows_sent":1,"time":"3.00018 s","type":"SELECT","users":"root"}],"total_count":1}},"schema":{"$ref":"#/definitions/MysqlSlowLogStatisticsResponse"}}},"tags":["日志"],"x-constraint":"该接口仅支持MySQL引擎和PostgreSQL引擎。","x-publishpath":"getlog","x-support-sdk":"Y"}}},"product_short":"RDS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":null,"tags":"日志","uri":null,"version":"2.0"}