GET /api/v4/topic-metrics

    Path Parameters:

    Success Response Body (JSON):

    metrics:

    NameTypeDescription
    messages.qos2.out.rateIntegerQoS 2 消息 5 秒内平均发送速率
    messages.qos2.out.countIntegerQoS 2 消息发送数量统计
    messages.qos2.in.rateIntegerQoS 2 消息 5 秒内平均接收速率
    messages.qos2.in.countIntegerQoS 2 消息接收数量统计
    messages.qos1.out.rateIntegerQoS 1 消息 5 秒内平均发送速率
    messages.qos1.out.countIntegerQoS 1 消息发送数量统计
    messages.qos1.in.rateIntegerQoS 1 消息 5 秒内平均接收速率
    messages.qos1.in.countIntegerQoS 1 消息接收数量统计
    messages.qos0.out.rateIntegerQoS 0 消息 5 秒内平均发送速率
    messages.qos0.out.countIntegerQoS 0 消息发送数量统计
    messages.qos0.in.rateIntegerQoS 0 消息 5 秒内平均接收速率
    messages.qos0.in.countIntegerQoS 0 消息接收数量统计
    messages.out.rateIntegerMQTT 消息 5 秒内平均发送速率
    messages.out.countIntegerMQTT 消息发送数量统计
    messages.in.rateIntegerMQTT 消息 5 秒内平均接收速率
    messages.in.countIntegerMQTT 消息接收数量统计
    messages.dropped.rateIntegerMQTT 消息 5 秒内平均丢弃速率
    messages.dropped.countIntegerMQTT 消息丢弃数量统计

    Examples:

    GET /api/v4/topic-metrics/{topic}

    返回指定主题的统计指标数据。

    Path Parameters:

    Success Response Body (JSON):

    NameTypeDescription
    messages.qos2.out.rateIntegerQoS 2 消息 5 秒内平均发送速率
    messages.qos2.out.countIntegerQoS 2 消息发送数量统计
    messages.qos2.in.rateIntegerQoS 2 消息 5 秒内平均接收速率
    messages.qos2.in.countIntegerQoS 2 消息接收数量统计
    messages.qos1.out.rateIntegerQoS 1 消息 5 秒内平均发送速率
    messages.qos1.out.countIntegerQoS 1 消息发送数量统计
    messages.qos1.in.rateIntegerQoS 1 消息 5 秒内平均接收速率
    messages.qos1.in.countIntegerQoS 1 消息接收数量统计
    messages.qos0.out.rateIntegerQoS 0 消息 5 秒内平均发送速率
    messages.qos0.out.countIntegerQoS 0 消息发送数量统计
    messages.qos0.in.rateIntegerQoS 0 消息 5 秒内平均接收速率
    messages.qos0.in.countIntegerQoS 0 消息接收数量统计
    messages.out.rateIntegerMQTT 消息 5 秒内平均发送速率
    messages.out.countIntegerMQTT 消息发送数量统计
    messages.in.rateIntegerMQTT 消息 5 秒内平均接收速率
    messages.in.countIntegerMQTT 消息接收数量统计
    messages.dropped.rateIntegerMQTT 消息 5 秒内平均丢弃速率
    messages.dropped.countIntegerMQTT 消息丢弃数量统计

    Examples:

    POST /api/v4/topic-metrics

    开启对指定主题的指标统计。

    Parameters (json):

    Success Response Body (JSON):

    NameTypeDescription
    codeInteger0

    Examples:

    开启对 主题的指标统计

    DELETE /api/v4/topic-metrics/{topic}

    关闭对指定主题的指标统计。

    Success Response Body (JSON):

    Examples:

    关闭对 a/b/c 主题的指标统计

    DELETE /api/v4/topic-metrics

    关闭所有主题的指标统计。

    Path Parameters:

    Success Response Body (JSON):

    NameTypeDescription
    codeInteger0

    Examples: