Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangshenghang committed Feb 13, 2025
1 parent 2c4570d commit ae60c7d
Show file tree
Hide file tree
Showing 6 changed files with 182 additions and 10 deletions.
4 changes: 2 additions & 2 deletions config/seatunnel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ seatunnel:
queue-type: blockingqueue
print-execution-info-interval: 60
print-job-metrics-info-interval: 60
print-job-event-info-interval: 31
event-queue-size: 101
print-job-event-info-interval: 30
event-queue-size: 100
slot-service:
dynamic-slot: true
checkpoint:
Expand Down
42 changes: 42 additions & 0 deletions docs/en/seatunnel-engine/rest-api-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -842,4 +842,46 @@ Returns a list of logs from the requested node.
To get a list of logs from the current node: `http://localhost:5801/hazelcast/rest/maps/log`
To get the content of a log file: `http://localhost:5801/hazelcast/rest/maps/log/job-898380162133917698.log`

</details>

------------------------------------------------------------------------------------------

### Return Job Event Information

<details>
<summary><code>GET</code> <code><b>/hazelcast/rest/maps/event/:jobId</b></code> <code>(Returns the list of job events)</code></summary>

#### Parameters

> | Parameter Name | Required | Type | Description |
> |----------------|----------|---------|-------------------|
> | jobId | Yes | string | The Job ID |
#### Response

```json
[
{
"createdTime": 1739501227166,
"eventType": "LIFECYCLE_READER_OPEN"
},
{
"createdTime": 1739501227232,
"eventType": "LIFECYCLE_ENUMERATOR_OPEN"
},
{
"createdTime": 1739501227457,
"eventType": "LIFECYCLE_ENUMERATOR_CLOSE"
},
{
"createdTime": 1739501227516,
"eventType": "LIFECYCLE_WRITER_CLOSE"
},
{
"createdTime": 1739501228305,
"eventType": "LIFECYCLE_READER_CLOSE"
}
]
```

</details>
46 changes: 45 additions & 1 deletion docs/en/seatunnel-engine/rest-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,4 +907,48 @@ To get the metrics, you need to open `Telemetry` first, or you will get an empty

More information about `Telemetry` can be found in the [Telemetry](telemetry.md) documentation.

</details>
</details>



------------------------------------------------------------------------------------------

### Return Job Event Information

<details>
<summary><code>GET</code> <code><b>/event/:jobId</b></code> <code>(Returns the list of job events)</code></summary>

#### Parameters

> | Parameter Name | Required | Type | Description |
> |----------------|----------|---------|-------------------|
> | jobId | Yes | string | The Job ID |
#### Response

```json
[
{
"createdTime": 1739501227166,
"eventType": "LIFECYCLE_READER_OPEN"
},
{
"createdTime": 1739501227232,
"eventType": "LIFECYCLE_ENUMERATOR_OPEN"
},
{
"createdTime": 1739501227457,
"eventType": "LIFECYCLE_ENUMERATOR_CLOSE"
},
{
"createdTime": 1739501227516,
"eventType": "LIFECYCLE_WRITER_CLOSE"
},
{
"createdTime": 1739501228305,
"eventType": "LIFECYCLE_READER_CLOSE"
}
]
```

</details>
43 changes: 43 additions & 0 deletions docs/zh/seatunnel-engine/rest-api-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -849,3 +849,46 @@ network:
获取日志文件内容:`http://localhost:5801/hazelcast/rest/maps/log/job-898380162133917698.log`

</details>


------------------------------------------------------------------------------------------

### 返回作业的事件信息

<details>
<summary><code>GET</code> <code><b>/hazelcast/rest/maps/event/:jobId</b></code> <code>(返回作业事件列表)</code></summary>

#### 参数

> | 参数名称 | 是否必传 | 参数类型 | 参数描述 |
> |-------|------|--------|------|
> | jobId || string | Job ID |
#### 响应

```json
[
{
"createdTime": 1739501227166,
"eventType": "LIFECYCLE_READER_OPEN"
},
{
"createdTime": 1739501227232,
"eventType": "LIFECYCLE_ENUMERATOR_OPEN"
},
{
"createdTime": 1739501227457,
"eventType": "LIFECYCLE_ENUMERATOR_CLOSE"
},
{
"createdTime": 1739501227516,
"eventType": "LIFECYCLE_WRITER_CLOSE"
},
{
"createdTime": 1739501228305,
"eventType": "LIFECYCLE_READER_CLOSE"
}
]
```

</details>
44 changes: 43 additions & 1 deletion docs/zh/seatunnel-engine/rest-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -895,4 +895,46 @@ curl --location 'http://127.0.0.1:8080/submit-job/upload' --form 'config_file=@"

更多关于`Telemetry`的信息可以在[Telemetry](telemetry.md)文档中找到。

</details>
</details>

------------------------------------------------------------------------------------------

### 返回作业的事件信息

<details>
<summary><code>GET</code> <code><b>/event/:jobId</b></code> <code>(返回作业事件列表)</code></summary>

#### 参数

> | 参数名称 | 是否必传 | 参数类型 | 参数描述 |
> |-------|------|--------|------|
> | jobId || string | Job ID |
#### 响应

```json
[
{
"createdTime": 1739501227166,
"eventType": "LIFECYCLE_READER_OPEN"
},
{
"createdTime": 1739501227232,
"eventType": "LIFECYCLE_ENUMERATOR_OPEN"
},
{
"createdTime": 1739501227457,
"eventType": "LIFECYCLE_ENUMERATOR_CLOSE"
},
{
"createdTime": 1739501227516,
"eventType": "LIFECYCLE_WRITER_CLOSE"
},
{
"createdTime": 1739501228305,
"eventType": "LIFECYCLE_READER_CLOSE"
}
]
```

</details>
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/*
* Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved.
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down

0 comments on commit ae60c7d

Please sign in to comment.