huawei-cloud-api-definitions-GaussDB 0.1.20250124

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"LtsLogSlowDetail":{"properties":{"client_ip":{"description":"IP地址。","type":"string"},"count":{"description":"执行次数。","type":"string"},"database":{"description":"所属数据库。","type":"string"},"line_num":{"description":"日志单行序列号。","type":"string"},"lock_time":{"description":"等待锁时间。","type":"string"},"node_id":{"description":"节点ID。","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"}}},"LtsLogSlowDetailsResponse":{"properties":{"slow_log_list":{"description":"慢日志列表。","items":{"$ref":"#/definitions/LtsLogSlowDetail"},"type":"array"}}},"LtsLogSlowQueryRequest":{"description":"慢日志请求体。","properties":{"database":{"description":"所属数据库。","type":"string"},"end_time":{"description":"结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。\n\n其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。","type":"string"},"limit":{"description":"查询记录数。","format":"int32","type":"integer"},"line_num":{"description":"日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。","type":"string"},"node_id":{"description":"节点ID。","type":"string"},"operate_type":{"description":"SQL语句类型,取空值,表示查询所有语句类型,也可指定如下日志类型:\n- INSERT\n- UPDATE\n- SELECT\n- DELETE\n- ALTER\n- DROP\n- CREATE","type":"string"},"start_time":{"description":"开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。\n\n其中,T指某个时间的开始;Z指时区偏移量,例如偏移1个小时显示为+0100。","type":"string"}},"required":["node_id","start_time","end_time","limit"],"type":"object"},"MysqlErrorResponse":{"properties":{"error_code":{"description":"错误码。","example":"DBS.200022","type":"string"},"error_msg":{"description":"错误消息。","example":"实例不存在","type":"string"}},"required":["error_code","error_msg"]}},"description":null,"group_id":"1bf15763f8164608918d180a9b1aa137","host":"gaussdb.cn-north-4.myhuaweicloud.com","id":"b9c3635445b2426d98cefb7b29952b40","info_version":"v3","method":"post","name":"ListLtsSlowlogDetails","parameters":{},"paths":{"/v3.1/{project_id}/instances/{instance_id}/slow-logs":{"post":{"description":"获取指定实例的慢日志详情列表。","operationId":"ListLtsSlowlogDetails","parameters":[{"description":"用户Token。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"******"},{"description":"语言。","in":"header","name":"X-Language","required":false,"type":"string","x-example":"zh-cn"},{"description":"租户在某一region下的project ID。\n\n获取方法请参见[获取项目ID](https://support.huaweicloud.com/api-taurusdb/taurusdb_10_0004.html)。\n","in":"path","name":"project_id","required":true,"type":"string","x-example":"619d3e78f61b4be68bc5aa0b59edcf7b"},{"description":"实例ID。","in":"path","name":"instance_id","required":true,"type":"string"},{"description":"查询日志请求体。","in":"body","name":"ListLtsSlowlogDetailsRequestBody","required":true,"schema":{"$ref":"#/definitions/LtsLogSlowQueryRequest"}}],"produces":["application/json"],"responses":{"200":{"description":"Success.","examples":{"application/json":{"slow_log_list":[{"client_ip":"192.*.*.1","count":1,"database":"gaussdb-mysql","line_num":1669344916000,"lock_time":"0.00003 s","node_id":"cc07c60e94ec4575989840e648fb4f66no07","query_sample":"INSERT INTO time_zone_name (Name, Time_zone_id) VALUES (N @time_zone_id);","rows_examined":0,"rows_sent":0,"start_time":"2022-11-25T10:55:16.000","time":"1.04899 s","type":"INSERT","users":"root"}]}},"schema":{"$ref":"#/definitions/LtsLogSlowDetailsResponse"}},"400":{"description":"Client error.","schema":{"$ref":"#/definitions/MysqlErrorResponse"}},"500":{"description":"Server error.","schema":{"$ref":"#/definitions/MysqlErrorResponse"}}},"summary":"获取慢日志详情列表","tags":["日志管理"],"x-is-registered":"N","x-request-examples-1":{"end_time":"2022-11-29T00:00:00+0800","limit":10,"line_num":1669344916000,"node_id":"cc07c60e94ec4575989840e648fb4f66no07","start_time":"2022-11-20T00:00:00+0800"},"x-request-examples-description-1":"查询慢日志详细信息。","x-request-examples-url-1":"POST https://{endpoint}/v3.1/056538411200d4cd2f79c003c7606412/instances/096c0fc43e804757b59946b80dc27f8bin07/slow-logs","x-support-sdk":"Y"}}},"product_short":"GaussDB","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"获取慢日志详情列表","tags":"日志管理","uri":null,"version":"2.0"}