GetTaskExecutionStatistics

Updated at:

Retrieves statistics on task execution.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.

Authorization information

No authorization information is available for this API.

Request syntax

GET /{workspaceId}/quanmiao/lightapp/getTaskExecutionStatistics HTTP/1.1

Path parameters

Parameter

Type

Required

Description

Example

workspaceId

string

No

The unique identifier of the Model Studio workspace. To obtain the workspace ID, see Get a workspaceId.

llm-xxx

Request parameters

Parameter

Type

Required

Description

Example

taskCode

string

Yes

The identifier of the task type.

EssayCorrectionTask

Response parameters

Element

Type

Description

Example

object

Schema of Response

requestId

string

Id of the request

A1B2C3D4-E5F6-7890-GHIJ-KLMNOPQRST

code

string

The error code.

Success

httpStatusCode

integer

The HTTP status code.

200

message

string

The message returned when the request fails.

Success

success

boolean

Indicates whether the request was successful. true indicates that the API response succeeded; false indicates that the response failed.

true

data

object

The object that contains the returned data.

runningCount

integer

The number of running tasks.

5

waitingCount

integer

The number of waiting tasks.

10

completedCount

integer

The number of completed tasks.

100

tpmPerMinute

array<object>

The number of tasks completed per minute (TPM) within the last day.

object

The number of tasks completed per minute.

time

string

The timestamp of the data point, aggregated by the minute. The format is yyyy-MM-dd HH:mm.

2024-08-01 10:00

count

integer

The number of tasks completed within the specified minute.

3

Examples

Success response

JSON format

{
  "requestId": "A1B2C3D4-E5F6-7890-GHIJ-KLMNOPQRST",
  "code": "Success",
  "httpStatusCode": 200,
  "message": "成功",
  "success": true,
  "data": {
    "runningCount": 5,
    "waitingCount": 10,
    "completedCount": 100,
    "tpmPerMinute": [
      {
        "time": "2024-08-01 10:00",
        "count": 3
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403NoPermissionYou are not authorized to perform this action , Please check the assignment of the workspaceId.Check the assignment of the workspaceId.

See Error Center for more error codes.

Release notes

For more information, see Release Notes.