Tüm Ürünler
Search
Belge Merkezi

:ListJobMetric

Son Güncelleme:Oct 12, 2026

Tamamlanan işlerin performans metriklerini getirir.

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

odps:ListJobMetric

list

*Tüm kaynaklar.

*

None None

Request syntax

POST /api/v1/jobs/metric HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

startTime

integer

Yes

Sorgu zaman aralığının başlangıç zamanı. Değer, saniye cinsinden bir UNIX zaman damgasıdır.

1735534322

endTime

integer

Yes

Sorgu zaman aralığının bitiş zamanı. Değer, saniye cinsinden bir UNIX zaman damgasıdır.

1735536322

body

object

No

İstek gövdesi parametreleri.

metric

string

No

Metrik bilgileri.

Valid values:

  • inputBytes :

    inputBytes.

  • memory :

    memory.

  • num :

    num.

  • inputBytesPerCu :

    inputBytesPerCu.

  • cpu :

    cpu.

  • runningTime :

    runningTime.

num

type

string

No

Metrik türü.

Valid values:

  • p1 :

    Yalnızca runningTime için desteklenir.

  • p99 :

    Yalnızca runningTime için desteklenir.

  • total :

    Yalnızca num, cpu, memory, inputBytes ve inputBytesPerCu için desteklenir.

  • min :

    Yalnızca runningTime için desteklenir.

  • avg :

    Yalnızca runningTime için desteklenir.

  • max :

    Yalnızca runningTime için desteklenir.

  • p5 :

    Yalnızca runningTime için desteklenir.

  • p90 :

    Yalnızca runningTime için desteklenir.

  • p50 :

    Yalnızca runningTime için desteklenir.

  • p95 :

    Yalnızca runningTime için desteklenir.

  • p10 :

    Yalnızca runningTime için desteklenir.

total

project

array

No

Filtreleme için kullanılan MaxCompute proje adlarının listesi.

string

No

Proje adı.

project_a

quota

array

No

Filtreleme için kullanılan bilgi işlem kotası takma adlarının listesi.

string

No

Bilgi işlem kotası takma adı.

os_PayAsYouGoQuota

period

integer

No

İzleme istatistik dönemi.

Valid values:

  • 3600 :

    3600

  • 86400 :

    86400

3600

group

string

No

Gruplama ölçütü.

Not

Geçerli değerler:

  • project: Projeye göre gruplama ve toplama

  • quota: Kotaya göre gruplama ve toplama

  • type: İş türüne göre gruplama ve toplama

  • status: İş durumuna göre gruplama ve toplama

Valid values:

  • quota :

    quota.

  • project :

    project.

  • type :

    type.

  • status :

    status.

project

Response elements

Element

Type

Description

Example

object

PopResult

requestId

string

İstek kimliği.

0be3e0aa16667684362147582e038f

httpCode

integer

HTTP durum kodu.

  • 1xx: Bilgilendirici yanıt. İstek alındı ve işleniyor.

  • 2xx: Başarılı. İstek eylemi sunucu tarafından başarıyla alındı, anlaşıldı ve kabul edildi.

  • 3xx: Yönlendirme. İstek yönlendirildi ve tamamlanması için daha fazla işlem yapılması gerekiyor.

  • 4xx: İstemci hatası. İstek geçersiz parametreler veya hatalı söz dizimi içeriyor ya da belirli istek koşulları nedeniyle yerine getirilemiyor.

  • 5xx: Sunucu hatası. Sunucu, başka nedenlerden dolayı isteği yerine getiremedi.

200

errorCode

string

Hata kodu.

OBJECT_NOT_EXIST

errorMsg

string

Hata mesajı.

This object does not exist.

data

object

Yanıt verileri.

category

string

Metrik türü.

job

name

string

Metrik adı.

num

period

integer

İzleme istatistik dönemi.

3600

metrics

array<object>

Metrik ayrıntıları.

array<object>

Metrik değeri.

metric

object

Metrik ile ilgili bilgiler.

string

Metrik bilgileri.

Not

Olası değerler: type, project, quota ve group.

"type": "total"

values

array

Metrik değeri bilgileri.

array

Metrik değerlerinin listesi.

number

2 öğeli bir liste. İlk öğe zaman damgasını, ikinci öğe ise karşılık gelen değeri temsil eder.

1736679600, 3

Examples

Success response

JSON format

{
  "requestId": "0be3e0aa16667684362147582e038f",
  "httpCode": 200,
  "errorCode": "OBJECT_NOT_EXIST",
  "errorMsg": "This object does not exist.",
  "data": {
    "category": "job",
    "name": "num",
    "period": 3600,
    "metrics": [
      {
        "metric": {
          "key": "\"type\": \"total\""
        },
        "values": [
          [
            0
          ]
        ]
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.