All Products
Search
Document Center

Simple Log Service:GetMetricStoreMeteringMode

Last Updated:Mar 27, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.