文档数据库服务 DDS-查询数据库慢日志(新版):响应消息

时间:2023-11-08 16:33:03

响应消息

  • 参数说明
    表3 参数说明

    名称

    参数类型

    说明

    slow_logs

    Array of objects

    慢日志具体信息。

    详情请参见表4

    表4 slowLogDetail字段数据结构说明

    名称

    参数类型

    说明

    node_name

    String

    节点名称。

    node_id

    String

    节点ID。

    whole_message

    String

    执行语句。

    operate_type

    String

    语句类型。

    cost_time

    Integer

    执行时间。

    单位:ms。

    lock_time

    Integer

    等待锁时间。

    单位:us。

    docs_returned

    Integer

    返回的文档数。

    docs_scanned

    Integer

    扫描的文档数。

    database

    String

    日志所属的数据库库名。

    collection

    String

    日志所属的数据库表名。

    log_time

    String

    日志产生时间,UTC时间。格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。

    line_num

    String

    日志单行序列号。

support.huaweicloud.com/api-dds/dds_api_0093.html