Sends heartbeats to a server from a consumer.
Operation description
Usage notes
- Connections between consumers and servers are established by sending heartbeats at regular intervals. If a server does not receive heartbeats from a consumer on schedule, the server deletes the consumer.
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /logstores/{logstore}/consumergroups/{consumerGroup}?type=heartbeat
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
logstore | string | Yes | The name of the Logstore. | ali-test-logstore |
consumerGroup | string | Yes | The name of the consumer group. The name must be unique in a project. | consumer_group_test |
consumer | string | Yes | The consumer. | consumer_1 |
body | array | Yes | The IDs of shards whose data is being consumed. | |
integer | Yes | The IDs of shards whose data is being consumed. | [0] |
Response parameters
Examples
Sample success responses
JSON
format
[
0
]
Error codes
For a list of error codes, visit the Service error codes.