All Products
Search
Document Center

Simple Log Service:CreateMaterializedView

Last Updated:Jun 11, 2026

Membuat tampilan yang di-materialisasi.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

POST /materializedviews HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

project

string

No

Nama proyek. Parameter ini ditentukan di jalur permintaan.

body

object

No

Konfigurasi tampilan yang di-materialisasi.

name

string

No

The name of the materialized view. The name must be unique within the project, 2 to 63 characters long, and contain only lowercase letters, digits, hyphens (-), and underscores (_). It must also start and end with a lowercase letter or a digit.

logstore

string

No

The destination Logstore for the aggregated data from the materialized view.

originalSql

string

No

The query statement that defines the materialized view.

aggIntervalMins

integer

No

The aggregation interval in minutes. The system creates aggregation tasks based on this interval.

startTime

integer

No

The time when the materialized view starts to aggregate data. Specify the time as a UNIX timestamp in seconds.

ttl

integer

No

The time-to-live (TTL) of the data in the materialized view, in days. After this period, the data expires and is automatically deleted.

Elemen respons

Element

Type

Description

Example

Tidak ada yang didefinisikan.

Contoh

Respons sukses

JSONformat

{}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.