Obtaining Test Events

Function

This API is used to obtain the test events of a function.

URI

GET /v2/{project_id}/fgs/functions/{function_urn}/events

Table 1 Path parameters

Parameter

Mandatory

Type

Description

function_urn

Yes

String

Function URN.

project_id

Yes

String

Tenant's project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

count

Integer

Total number of test events.

events

Array of Event objects

Test event list.

next_marker

Long

Next read location.

Table 3 Event

Parameter

Type

Description

id

String

Test event ID.

last_modified

Number

Last update time.

name

String

Test event name.

Example Requests

GET https://{functiongraph_endpoint}/v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/functions/urn:fss:cn-north-4:35f6ceaa17ca4c239538265a0f823423:function:Acception:testnodejs12:latest/events

Example Responses

Status code: 200

ok

{
  "count" : 1,
  "events" : [ {
    "id" : "3b659dc0-12fc-40dc-aa05-a321d9424cb3",
    "name" : "event-k9r3",
    "last_modified" : 1597374286
  } ],
  "next_marker" : 2
}

Status Codes

Status Code

Description

200

ok

Error Codes

See Error Codes.