Consumer Heartbeat

Last updated: 2020-05-21 14:20:30

    Feature Description

    This API is used to upload consumer heartbeats.

    Request

    Sample request

    POST /consumerheartbeat?topic_id=xxxx-xx-xx-xx-xxxx HTTP/1.1
    Host: <Region>.cls.tencentyun.com
    Content-Type: application/json
    Authorization: <AuthorizationString>
    
    {"consumer_group": "cls_demo_consumer_group", "consumer_id": "consumer_id", "partitiotn_id_list": []}

    Request header

    There are only common request headers but no special request headers.

    Request parameters

    Field Name Type Location Required Description
    topic_id string query Yes Log topic ID of consumer group
    consumer_group string body Yes Consumer group name
    consumer_id string body Yes Consumer name
    partition_id_list array body Yes List of partitions consumed by consumer

    Response

    Sample response

    HTTP/1.1 200 OK
    Content-Type: application/json
    Content-Length: 123
    
    {
        "partition_id_list":[
            4,
            5
        ]
    }

    Response header

    There are only common response headers but no special response headers.

    Response parameters

    Field Name Type Required Description
    partition_id_list array Yes List of partitions consumable by consumer

    Error Codes

    For more information, please see Error Codes.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help