Changes the billing mode of a Logstore.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /logstores/{logstore}/meteringmode HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | projectName |
logstore | string | Yes | The name of the Logstore. | logstoreName |
body | object | No | The body of the request. | |
meteringMode | string | Yes | The billing mode. Valid values: ChargeByFunction and ChargeByDataIngest. Default value: ChargeByFunction. The value ChargeByFunction specifies the pay-by-feature billing mode. The value ChargeByDataIngest specifies the pay-by-ingested-data billing mode. | ChargeByFunction |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.