Mengkueri mode penagihan penyimpanan metrik.
Deskripsi operasi
MetricStore supports two billing modes: pay-by-feature and pay-by-write-traffic.
-
You must specify an existing MetricStore when you call this operation.
-
In the request syntax, Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
-
An AccessKey pair is required. For more information, seeAccessKey pair.
The AccessKey pair of an Alibaba Cloud account has permissions on all API operations, which is high risk. We recommend that you create and use a RAM user to call API operations or perform routine O&M. The RAM user must have permissions to manage Simple Log Service resources. For more information, seeCreate a RAM user and authorize the RAM user.
-
Before you call this operation, make sure that you have obtained the project name and region of the logs. For more information, seeManage a project.
-
You can create up to 200 Logstores or MetricStores in a project.
-
When metric data reaches the retention period that you configured, the data is deleted.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
GET /metricstores/{metricStore}/meteringmode HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| metricStore |
string |
Yes |
Nama penyimpanan data deret waktu. |
metricStoreName |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
Nama Proyek. |
projectName |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| meteringMode |
string |
The billing mode. Default value: ChargeByFunction. Valid values: ChargeByFunction and ChargeByDataIngest. |
ChargeByFunction |
Contoh
Respons sukses
JSONformat
{
"meteringMode": "ChargeByFunction"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.