Queries the billing mode of a Metricstore.
Operation description
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.
Try it now
Test
RAM authorization
Request syntax
GET /metricstores/{metricStore}/meteringmode HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| metricStore |
string |
Yes |
metricStore |
metricStoreName |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
projectName |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| meteringMode |
string |
The billing mode. Default value: ChargeByFunction. Valid values: ChargeByFunction and ChargeByDataIngest. |
ChargeByFunction |
Examples
Success response
JSON format
{
"meteringMode": "ChargeByFunction"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.