ListExecutorEvents - 查询Executor运行事件

Updated at:

查询一个或多个Executor的运行事件列表。

接口说明

查询作业 Executor 信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

ehpc:ListExecutorEvents

get

*全部资源

*

无 无

请求参数

名称

类型

必填

描述

示例值

PageSize

integer

否

分页查询时设置的本页条数。 默认 50,最大 100。

50

PageNumber

integer

否

当前页码。
起始值:1
默认值:1




1

Filter

object

否

查询 Executor 过滤条件。

Level

string

否

运行事件等级。取值范围:

  • Normal

  • Warning

  • Error

Normal

TimeAfter

integer

否

在此时间之后发生的事件,以所在地域的时间(国内站为东八区)转化为 Unix 时间戳。

1703820113

TimeBefore

integer

否

在此时间之前发生的事件,以所在地域的时间(国内站为东八区)转化为 Unix 时间戳。

1703819914

JobId

string

否

作业 ID。

job-xxxx

ExecutorIds

array

否

Executor ID 列表,最大支持 100 条。

string

否

Executor ID。格式为 JobId-TaskName-ArrayIndex。

job-xxxx-Task0-1

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

请求 ID。

896D338C-E4F4-41EC-A154-D605E5DE****

PageSize

integer

分页查询时设置的本页条数。

50

PageNumber

integer

当前页码。

1

TotalCount

integer

列表条目总数。

40

ExecutorEventList

array<object>

运行事件列表。

object

运行事件属性。

JobId

string

作业 ID。

job-xxxx

ExecutorId

string

Executor ID。格式为 JobId-TaskName-ArrayIndex。

job-xxxx-Task0-1

Level

string

运行事件等级。取值范围:

  • Normal

  • Warning

  • Error

Normal

Time

string

运行事件发生的事件。

2024-02-20 10:04:13

Content

string

运行事件内容。

Executor created successfully

示例

正常返回示例

JSON格式

{
  "RequestId": "896D338C-E4F4-41EC-A154-D605E5DE****",
  "PageSize": 50,
  "PageNumber": 1,
  "TotalCount": 40,
  "ExecutorEventList": [
    {
      "JobId": "job-xxxx",
      "ExecutorId": "job-xxxx-Task0-1",
      "Level": "Normal",
      "Time": "2024-02-20 10:04:13",
      "Content": "Executor created successfully"
    }
  ]
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidParams The specified parameter %s is invalid. 无效的参数:%s
400 JobNotFound The specified job id is not found. 未找到作业ID
406 DbError A database error occurred. 数据库错误
407 NotAuthorized No authorization is granted. 未授权

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。