Skip to content

Commit 1997cc3

Browse files
committed
add data_stream_apis, create_data_stream
1 parent 3d8795d commit 1997cc3

File tree

4 files changed

+71
-2
lines changed

4 files changed

+71
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,8 @@ npm run docs:dev
897897
- Get auto-follow pattern
898898
- Pause auto-follow pattern
899899
- Resume auto-follow pattern
900-
- Data stream APIs
901-
- Create data stream
900+
- :heavy_check_mark: 数据流 API [:link:](https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/)
901+
- :heavy_check_mark: 创建数据流 [:link:](https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/create_data_stream)
902902
- Delete data stream
903903
- Get data stream
904904
- Migrate to data stream
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# 创建数据流
2+
3+
创建一个新的[数据流](/data_streams)
4+
5+
```bash
6+
PUT /_data_stream/my-data-stream
7+
```
8+
9+
## 请求
10+
11+
`PUT /_data_stream/<data-stream>`
12+
13+
## 前置条件
14+
15+
- 如果 Elasticsearch 安全特性启用,你必须有 `create_index``manage`[索引权限](/secure_the_elastic_statck/user_authorization/security_privileges#索引权限)
16+
- 已启用数据流的匹配[索引模板](/index_templates)。参阅[设置数据流](/data_streams/set_up_a_data_stream)
17+
18+
## 路径参数
19+
20+
- `<data-stream>`
21+
22+
(必须,字符串) 要创建的数据流的名称。数据流名称必须符合以下条件:
23+
24+
- 只能是小写
25+
- 不能包含 `\``/``*``?``"``<``>``|``,``#``:` 或空格符
26+
- 不能以这些开头:`-``_``+`,或 `.ds-`
27+
- 长度不能超过 255 字节。多字节字符的计算速度更快。
28+
29+
30+
> [原文链接](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-data-stream.html)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 数据流 API
2+
3+
以下 API 可用于管理数据流:
4+
5+
- [创建数据流](./create_data_stream)
6+
- [删除数据流](./delete_data_stream)
7+
- [获取数据流](./get_data_stream)
8+
- [迁移到数据流](./migrate_to_data_stream)
9+
- [数据流统计](./data_stream_stats)
10+
- [推广数据流](./promote_data_stream)
11+
- [修改数据流](./modify_data_stream)
12+
13+
以下 API 可用于管理数据流的内置生命周期:
14+
15+
:::caution 警告
16+
此功能为技术预览版,可能会在未来版本中更改或删除。Elastic 将努力修复任何问题,但技术预览版中的功能不受官方 GA 功能的支持服务级别协议约束。
17+
:::
18+
19+
- [更新数据流生命周期](./put_data_stream_lifecycle) [预览版]
20+
- [获取数据流生命周期](./get_data_stream_lifecycle) [预览版]
21+
- [删除数据流生命周期](./delete_data_stream_lifecycle) [预览版]
22+
- [解释数据流生命周期](./explain_data_stream_lifecycle) [预览版]
23+
- [获取数据流生命周期统计数据](./get_data_stream_lifecycle)[预览版]
24+
25+
以下 API 可用于[时序数据流](/data_streams/tsds)
26+
27+
- [下采样](./downsample)
28+
29+
有关概念和教程,参阅[数据流](/data_streams)
30+
31+
> [原文链接](https://www.elastic.co/guide/en/elasticsearch/reference/current/data-stream-apis.html)

sidebars.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ const sidebars = {
151151
'rest_apis/behavioral_analytics_apis/post_analytics_collection_event'
152152
]
153153
},
154+
{
155+
type: 'category',
156+
label: '数据流 API',
157+
link: { type: 'doc', id: "rest_apis/data_stream_apis/data_stream_apis" },
158+
items: [
159+
'rest_apis/data_stream_apis/create_data_stream'
160+
]
161+
},
154162
{
155163
type: 'category',
156164
label: '文档 API',

0 commit comments

Comments
 (0)