Mengambil waktu sisi server yang sesuai dengan sebuah cursor.
Sintaksis permintaan
aliyunlog log get_cursor_time --project_name=<value> --logstore_name=<value> --shard_id=<value> --cursor=<value> [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]
Parameter permintaan
Tabel berikut menjelaskan parameter khusus untuk perintah ini.
|
Parameter |
Numeric type |
Required |
Example |
Description |
|
--project_name |
String |
Yes |
aliyun-test-project |
Nama Proyek. |
|
--logstore_name |
String |
Yes |
logstroe-a |
Nama Logstore. |
|
--shard_id |
String |
Yes |
0 |
ID shard. |
|
--cursor |
String |
Yes |
MTYxNDc1MDAyNzM3MzIwNTcxNA== |
Cursor tempat timestamp diambil. |
Untuk informasi selengkapnya tentang Global parameters, lihat Global parameters.
Contoh
-
Contoh Permintaan
Kueri waktu sisi server dari sebuah cursor menggunakan akun default.
aliyunlog log get_cursor_time --project_name="aliyun-test-project" --logstore_name="logstore-a" --shard_id=0 --cursor="MTYxNDc1MDAyNzM3MzIwNTcxNA==" -
Contoh Respons
{"cursor_time": 1620037252}
Kode kesalahan
Untuk informasi selengkapnya tentang Error codes, lihat Error codes.