Tüm Ürünler
Search
Belge Merkezi

:DescribeSlowLogRecords

Son Güncelleme:Oct 13, 2026

Belirtilen bir zaman dilimi içinde bir Tair (Redis® OSS-Compatible) veritabanı örneği tarafından oluşturulan yavaş sorgu günlüklerini sorgular.

Operation description

İlgili konsol işlemi için Yavaş sorgu günlüklerini sorgulama konusuna bakın. DescribeSlowLogRecords için dakikada en fazla 100 çağrı yapılabilir.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

kvstore:DescribeSlowLogRecords

get

*DBInstance

acs:kvstore:{#regionId}:{#accountId}:dbinstance/{#dbInstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

Örnek kimliği.

r-bp1zxszhcgatnx****

NodeId

string

No

Örnekteki düğüm kimliği. Belirli bir düğümün yavaş sorgu günlüklerini sorgulamak için bu parametreyi belirtin.

Not

Bu parametre yalnızca örnek okuma/yazma bölme veya küme mimarisini kullandığında kullanılabilir.

r-bp1zxszhcgatnx****-db-0

StartTime

string

Yes

Sorgunun başlangıç zamanı. Zamanı yyyy-MM-ddTHH:mmZ biçiminde belirtin. Zaman UTC olmalıdır.

2019-03-10T14:00Z

EndTime

string

Yes

Sorgunun bitiş zamanı. Bitiş zamanı başlangıç zamanından sonra olmalıdır ve zaman aralığı 1 günü aşamaz. Önerilen zaman aralığı 1 saattir. Zamanı yyyy-MM-ddTHH:mmZ biçiminde belirtin. Zaman UTC olmalıdır.

2019-03-10T15:00Z

DBName

string

No

Veritabanı adı.

0

PageSize

integer

No

Her sayfada döndürülecek maksimum giriş sayısı. Geçerli değerler: 30, 50 ve 100. Varsayılan değer: 30.

Valid values:

  • 30 :

    Sayfa başına 30 giriş.

  • 50 :

    Sayfa başına 50 giriş.

  • 100 :

    Sayfa başına 100 giriş.

30

PageNumber

integer

No

Sayfa numarası. Değer, INTEGER veri türünün maksimum değerini aşmayan pozitif bir tam sayı olmalıdır. Varsayılan değer: 1.

1

SlowLogRecordType

string

No

Yavaş günlük türü. Geçerli değerler:

  • proxy: Proxy düğümlerindeki yavaş sorgu günlükleri.

  • db: Veri düğümlerindeki yavaş sorgu günlükleri. Bu varsayılan değerdir.

Valid values:

  • proxy :

    proxy düğümlerindeki yavaş sorgu günlükleri.

  • db :

    veri düğümlerindeki yavaş sorgu günlükleri.

proxy

QueryKeyword

string

No

Döndürülen sonuçlarda arama yapmak için kullanılan anahtar kelime.

keyword1

OrderType

string

No

Döndürülen sonuçların sıralama düzeni. Geçerli değerler:

  • ASC: artan düzen.

  • DESC: azalan düzen. Bu varsayılan değerdir.

Valid values:

  • ASC :

    artan düzen.

  • DESC :

    azalan düzen.

ASC

OrderBy

string

No

Döndürülen sonuçların sıralandığı alan. Geçerli değerler:

  • execution_time: sonuçları istek yürütmesinin başlangıç zamanına göre sıralar. Bu varsayılan değerdir.

  • latency: sonuçları isteklerin yürütme süresine göre sıralar.

execution_time

Response elements

Element

Type

Description

Example

object

StartTime

string

Sorgunun başlangıç zamanı.

Zaman YYYY-MM-DDTHH:mmZ biçimindedir ve UTC olarak görüntülenir.

2019-03-10T14:00Z

RequestId

string

İstek kimliği.

686BB8A6-BBA5-47E5-8A75-D2ADE433****

PageRecordCount

integer

Geçerli sayfada döndürülen günlük girişi sayısı.

1

TotalRecordCount

integer

Toplam günlük girişi sayısı.

1

PageSize

integer

Sayfa başına döndürülen maksimum günlük girişi sayısı.

30

InstanceId

string

Örnek kimliği.

r-bp10n********

Engine

string

Veritabanı motoru.

Redis

PageNumber

integer

Geçerli sayfa numarası.

1

Items

object

LogRecords

array<object>

Yavaş sorgu günlüğü girişlerinin koleksiyonu.

object

Account

string

Hesap kimliği.

0

ElapsedTime

integer

Yürütme süresi. Birim: mikrosaniye.

248

Command

string

Yavaş sorgu ifadesi.

KEYS *

DBName

string

Veritabanı adı.

0

ExecuteTime

string

Yürütmenin başlangıç zamanı. Zaman YYYY-MM-DDTHH:mm:ssZ biçimindedir.

2019-03-12T09:18:41Z

DataBaseName

string

Veritabanı adı. Bu alan DBName ile aynı amaca hizmet eder. Bunun yerine DBName parametresini kullanın.

0

NodeId

string

Düğüm kimliği.

r-bp1zxszhcgatnx****-db-0

AccountName

string

Hesap adı.

demo

IPAddress

string

İstemcinin IP adresi.

172.16.88.***

Examples

Success response

JSON format

{
  "StartTime": "2019-03-10T14:00Z",
  "RequestId": "686BB8A6-BBA5-47E5-8A75-D2ADE433****",
  "PageRecordCount": 1,
  "TotalRecordCount": 1,
  "PageSize": 30,
  "InstanceId": "r-bp10n********",
  "Engine": "Redis",
  "PageNumber": 1,
  "Items": {
    "LogRecords": [
      {
        "Account": "0",
        "ElapsedTime": 248,
        "Command": "KEYS *",
        "DBName": "0",
        "ExecuteTime": "2019-03-12T09:18:41Z",
        "DataBaseName": "0",
        "NodeId": "r-bp1zxszhcgatnx****-db-0",
        "AccountName": "demo",
        "IPAddress": "172.16.88.***"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidStartTime.Malformed The Specified parameter StartTime is not valid.
400 InvalidEndTime.Malformed The Specified parameter EndTime is not valid.
403 IncorrectEngineVersion Current engine version does not support operations.
403 ServerBusy server busy now, please retry later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.