Mengatur ulang offset konsumen ke pengatur waktu tertentu untuk kelompok konsumen.
Deskripsi operasi
API operations provided by Alibaba Cloud are used to manage and query resources of Alibaba Cloud services. We recommend that you integrate these API operations only in management systems. Do not use these API operations in the core system of messaging services. Otherwise, system risks may occur.
You can call this operation to clear accumulated messages or reset a consumer offset to a specified timestamp. You can use one of the following methods to clear accumulated messages:
Clear all accumulated messages in a specified topic.
Clear the messages that were published to the specified topic before a specified point in time.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:ResetConsumerOffset |
get |
Topic
Topic
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
ID kelompok konsumen yang Paket dead-letter-nya ingin Anda kueri. |
GID_test_consumer_id |
| Topic |
string |
Yes |
Nama Topik yang offset konsumennya ingin Anda atur ulang. |
test-mq-topic |
| Type |
integer |
Yes |
Metode yang ingin Anda gunakan untuk menghapus Paket yang menumpuk. Nilai valid:
Jika "reconsumeLater" dikembalikan, Paket yang menumpuk tidak dihapus karena sistem sedang mencoba ulang untuk mengirim kembali Paket ke konsumen.
Anda dapat menentukan pengatur waktu dari pengatur waktu paling awal saat Paket dipublikasikan ke Topik hingga pengatur waktu paling baru saat Paket dipublikasikan ke Topik. Pengatur waktu yang tidak berada dalam Rentang Waktu yang diizinkan tidak valid. |
1 |
| ResetTimestamp |
integer |
No |
Pengatur waktu yang ingin Anda gunakan untuk mengatur ulang offset konsumen. Parameter ini hanya berlaku jika parameter Type diatur ke 1. Unit: milliseconds. |
1591153871000 |
| InstanceId |
string |
No |
ID Instans tempat kelompok konsumen berada. |
MQ_INST_111111111111_DOxxxxxx |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use this ID to troubleshoot issues. |
D52C68F8-EC5D-4294-BFFF-1A6A25AF**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D52C68F8-EC5D-4294-BFFF-1A6A25AF****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.