All Products
Search
Document Center

ApsaraDB for OceanBase:DescribeTenantMetrics

Last Updated:Dec 02, 2024

You can call this operation to query the metrics of a specified OceanBase Database tenant.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
oceanbase:DescribeTenantMetricsget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

2021-06-13T15:40:43Z

ob317v4uif****
PageSizeintegerNo

tfafd34fs****

10
PageNumberintegerNo

The ID of the OceanBase cluster.

1
TenantNamedeprecatedstringNo

2021-06-13T15:45:43Z

pay_online
StartTimestringYes

Example 1

2021-06-13T15:40:43Z
EndTimestringYes
2021-06-13T15:45:43Z
MetricsstringYes

{"name":"DescribeTenantMetrics","product":"OceanBasePro","version":"2019-09-01","path":"/","deprecated":0,"method":"POST|GET","protocol":"HTTP|HTTPS","hidden":0,"timeout":10000,"parameter_type":"Single","params":"[{"name":"Action","position":"Query","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"","example":"DescribeTenantMetrics"},{"name":"InstanceId","position":"Body","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"","description":"","example":"ob317v4uif****"},{"name":"PageSize","position":"Body","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"Integer","title":"","description":"","example":"10"},{"name":"PageNumber","position":"Body","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"Integer","title":"","description":"","example":"1"},{"name":"TenantName","position":"Body","required":false,"checkBlank":false,"visibility":"Public","deprecated":true,"type":"String","title":"","description":"","example":"pay_online"},{"name":"StartTime","position":"Body","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"","description":"","example":"2021-06-13T15:40:43Z"},{"name":"EndTime","position":"Body","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"","description":"","example":"2021-06-13T15:45:43Z"},{"name":"Metrics","position":"Body","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"","description":"","example":"tps"},{"name":"TenantId","position":"Body","required":false,"checkBlank":false,"visibility":"Public","deprecated":true,"type":"String","title":"","description":"","example":"tfafd34fs****"},{"name":"TenantIdList","position":"Body","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"","description":"","example":"[tdak3nac****,tdakc42df****]"}]","response_headers":"[]","response":"{"type":"Object","children":[{"name":"TotalCount","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"Integer","title":"","description":"","example":"9"},{"name":"RequestId","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"","description":"","example":"EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C"},{"name":"TenantMetrics","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"","description":"","example":"\"Metrics\":[ {\"request_queue_rt\":0.0,\"TimeStamp\":\"2022-02-23T01:58:00Z\"}]"}],"title":"","description":""}","errors":"{}"}

tps

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{
  "TotalCount": 9,
  "RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C",
  "TenantMetrics": "\"Metrics\":[ {\"request_queue_rt\":0.0,\"TimeStamp\":\"2022-02-23T01:58:00Z\"}]"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-16The internal configuration of the API is changed, but the call is not affectedView Change Details
2024-08-15The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-01-17The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-01-17The request parameters of the API has changed. The response structure of the API has changedView Change Details