All Products
Search
Document Center

Simple Log Service:Ikhtisar Go SDK

Last Updated:Jun 03, 2026

Go SDK SLS membungkus seluruh operasi API Simple Log Service untuk akses programatik.

Rilis

Lihat changelog dan riwayat versi di GitHub.

Kode contoh

Tabel berikut mencantumkan contoh Go SDK yang tersedia.

Contoh

Deskripsi

alert_example.go

Buat alert (versi lama).

index_sample.go

Buat indeks, tulis log, dan kueri log.

log_logstore.go

Buat dan modifikasi Logstore.

machine_group_sample.go

Asosiasikan kelompok mesin dengan konfigurasi Logtail.

simple_demo.go

Gunakan kelompok konsumen untuk membaca data.

log_config_json.go

Buat konfigurasi Logtail dalam pola JSON.

main.go

Kueri log.

client_alert_test.go

Buat alert (versi baru).

client_alert_resource_test.go

Buat sumber daya alert (versi baru).