Skip to content

Commit 52eaa5b

Browse files
authored
Merge pull request duneanalytics#112 from gm365/zh-docs-v2
翻译 “执行结果” 章节
2 parents 1c7c1d5 + 60e86cd commit 52eaa5b

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

docs/zh/api/api-reference/cancel-execution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ description: 如何撤销您的 Dune API 执行请求。
1717

1818
## 请求示例
1919

20-
您需要传递您从 [Execute Query ID POST](execute-query-id.md) 请求中获得的 `execution_id` 参数,用以完成撤销执行的 API 请求。
20+
您需要传递您从 [执行查询 ID](execute-query-id.md) 请求中获得的 `execution_id` 参数,用以完成撤销执行的 API 请求。
2121

2222
```
2323
POST v1/execution/{{execution_id}}/cancel

docs/zh/api/api-reference/execute-query-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ curl -X POST -d '{"query_parameters": { "param1":24}}' -H x-dune-api-key:{{api_k
3636

3737
## 返回示例
3838

39-
!!! info "Dune API 以 JSON 格式返回响应。"
39+
!!! info Dune API 以 JSON 格式返回响应。
4040

4141
```json
4242
{

docs/zh/api/api-reference/execution-results.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: Execution Results
3-
description: Here's how to get the results data of an execution request.
2+
title: 执行结果
3+
description: 如果获取执行请求的结果数据。
44
---
55

6-
# [GET] Execution Results
6+
# [GET] 执行结果
77

8-
Here's how to get the results data of an execution request.
8+
如何获取执行请求的结果数据。
99

10-
## Arguments
10+
## 请求参数
1111

12-
None.
12+
无需参数。
1313

14-
## Returns
14+
## 返回值
1515

16-
Returns back the status, metadata, and query results from a query execution.
16+
返回执行查询的状态、元数据和查询结果。
1717

18-
## Example Request
18+
## 请求示例
1919

20-
You need to pass the `execution_id` you obtained from making a [Execute Query ID POST](execute-query-id.md) request to the complete an Execution Results API request.
20+
您需要传递您从 [执行查询 ID](execute-query-id.md) 请求中获得的 `execution_id` 参数,用以完成获取执行结果的 API 请求。
2121

2222
```
2323
GET v1/execution/{{execution_id}}/results
@@ -31,9 +31,9 @@ https://api.dune.com/api/v1/execution/{{execution_id}}/results
3131
curl -X GET "https://api.dune.com/api/v1/execution/{{execution_id}}/results" -H x-dune-api-key:{{api_key}}
3232
```
3333

34-
## Example Response
34+
## 返回示例
3535

36-
!!! info "Dune API responses are delivered in JSON format."
36+
!!! info Dune API JSON 格式返回响应。”
3737

3838
```json
3939
{
@@ -94,38 +94,38 @@ curl -X GET "https://api.dune.com/api/v1/execution/{{execution_id}}/results" -H
9494
}
9595
```
9696

97-
- *execution_id* : The execution ID for which this API was called.
98-
- *query_id* : The ID of the Dune Query executed with this request.
99-
- *state* : The current state of the query's execution. Check our `FAQ` section to see what different status codes for `state` mean.
100-
- *submitted_at* : The timestamp at which the API for executing this query was called.
101-
- *expires_at* : The time upto which results from this query's execution shall be stored in our Database.
102-
- *execution_started_at* : The time at which query execution started for this request in our servers.
103-
- *execution_ended_at* : The time at which the query execution for this request got completed in our servers.
97+
- *execution_id* : 当前 API 调用的执行 ID 。
98+
- *query_id* : 当前请求所对应执行的 Dune 查询 ID 。
99+
- *state* : 此查询的当前执行状态。查阅 `FAQ` 章节,了解不同状态码所对应 `state` 的具体含义。
100+
- *submitted_at* : 执行该查询的 API 被调用时的时间戳。
101+
- *expires_at* : 该查询的执行结果被储存在我们数据库中的过期时间。
102+
- *execution_started_at* : 该请求在我们的服务器中查询执行开始的时间。
103+
- *execution_ended_at* : 该请求在我们的服务器中查询执行完成的时间。
104104
- *result* :
105-
- *rows* : The actual rows of data being returned for this request.
106-
- *metadata* : Some properties of the queried data being returned.
107-
- *column_names* : Names of the columns in the data returned.
108-
- *result_set_bytes* : The size of the returned data.
109-
- *total_row_count* : The number of rows in the data.
110-
- *datapoint_count* : Total number of datapoints returned with this request, should equal to (`total_row_count` x number of columns).
111-
- *pending_time_millis* : The time (in milliseconds) it took to assign a slot in our server for this request.
112-
- *execution_time_millis* : The time (in milliseconds) it took for the actual execution of the query with this request.
105+
- *rows* : 该请求返回的实际数据记录。
106+
- *metadata* : 返回查询数据的一些属性值。
107+
- *column_names* : 返回数据中的列名。
108+
- *result_set_bytes* : 返回的数据大小。
109+
- *total_row_count* : 数据中的行数。
110+
- *datapoint_count* : 该请求返回的数据点(datapoints)总数,等值于(`total_row_count` x 列数)。
111+
- *pending_time_millis* : 在我们的服务器中为这个请求分配一个插槽所花费的时间(以毫秒计)。
112+
- *execution_time_millis* : 该请求实际执行查询所花费的时间(以毫秒计)。
113113

114114

115-
## Reading Results Data FAQ
115+
## 查询结果读取 FAQ
116116

117-
### Can I ingest data by getting a direct connection to the database instead?
117+
### 我能否通过直连数据库来提取数据?
118118

119-
Not currently. In the interim we recommend periodically fetching from “max(latestBlockNumber) - 2” to “lastFetchedBlockNumber” in regular intervals. Fetching from 2 behind the latest block number ensures you receive full sets of data from each new request.
119+
目前还不行。在过渡时期,我们建议定期从 "max(latestBlockNumber) - 2" 到 "lastFetchedBlockNumber" 之间获取数据。从最新区块编号往前2位开始获取,可以确保你从每次新请求中获取到完整数据集。
120120

121-
### Are query results data saved for faster retrieval?
121+
### 查询结果数据是否会被存档以便快速检索?
122122

123-
Yes
123+
没错
124124

125-
### How long are the results data from an execution stored for?
125+
### 执行的结果数据会被储存多久?
126126

127-
Currently set to 2 years but we may reduce this to something closer to 90 days in the future. This is visible on the API response on the “expires_at” field in the execution status and results body.
127+
目前是2年,但未来我们可能会降低到接近90天。这个值在 API 响应的执行状态和查询结果的 "expires_at" 字段均可见。
128128

129-
### How much data can I retrieve in a single API result call?
129+
### 在单次 API 结果调用中,我可以获取多少数据?
130130

131-
There is currently a 1GB limit, but there is a chance we reduce this overall or based on varying paid plan types.
131+
目前上限为 1GB,但我们可能会在整体上调低此限制,或依据不同的付费计划类型而有所不同。

0 commit comments

Comments
 (0)