Skip to content

Commit 37d43cd

Browse files
authored
Merge pull request #120 from aliyun/tanhehe/add_fun_log_spec
add log spec
2 parents 3b8f659 + e50698d commit 37d43cd

3 files changed

Lines changed: 77 additions & 8 deletions

File tree

docs/specs/2018-04-03-zh-cn.md

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ Resources:
6666
- [Aliyun::Serverless::Function](#aliyunserverlessfunction)
6767
- [Aliyun::Serverless::CustomDomain](#aliyunserverlesscustomdomain)
6868
- [Aliyun::Serverless::Api](#aliyunserverlessapi)
69-
- [Aliyun:Serverless::TableStore](#aliyunserverlesstablestore)
69+
- [Aliyun::Serverless::TableStore](#aliyunserverlesstablestore)
7070
- [Aliyun:Serverless::TableStore::Table](#aliyunserverlesstablestoretable)
71-
- [Aliyun:Serverless::Log](#aliyunserverlesslog)
72-
- [Aliyun:Serverless::Log::Logstore](#aliyunserverlessloglogstore)
73-
- [Aliyun:Serverless::MNSTopic](#aliyunserverlessmnstopic)
71+
- [Aliyun::Serverless::Log](#aliyunserverlesslog)
72+
- [Aliyun::Serverless::Log::Logstore](#aliyunserverlessloglogstore)
73+
- [Aliyun::Serverless::MNSTopic](#aliyunserverlessmnstopic)
7474
7575
#### Aliyun::Serverless::Service
7676
@@ -206,6 +206,40 @@ mytablestore: # tablestore name
206206
Type: STRING
207207
```
208208

209+
#### Aliyun::Serverless::Log
210+
211+
`Aliyun::Serverless::Log` 资源创建日志服务的 [项目(Project)](https://help.aliyun.com/document_detail/48873.html)。
212+
213+
##### 属性
214+
属性名称 | 类型 | 描述
215+
---|:---:|---
216+
Description | `string` | **必填。** 实例注释。
217+
218+
##### Aliyun::Serverless::Log::Logstore
219+
220+
`Aliyun::Serverless::Log::Logstore` 资源用于创建项目(Project)下的 [日志库(Logstore)](https://help.aliyun.com/document_detail/48874.html)。
221+
222+
###### 属性
223+
224+
属性名称 | 类型 | 描述
225+
---|:---:|---
226+
TTL | `integer` | 数据的保存时间,单位为天,范围 1~3600。
227+
shardCount | `integer` | Shard 个数,单位为个,范围为 1~100。
228+
229+
#### 示例:Aliyun::Serverless::Log
230+
231+
```yaml
232+
test-log-project:
233+
Type: 'Aliyun::Serverless::Log'
234+
Properties:
235+
Description: 'just test log'
236+
test-log-store:
237+
Type: 'Aliyun::Serverless::Log::Logstore'
238+
Properties:
239+
TTL: 10
240+
ShardCount: 1
241+
```
242+
209243
#### Aliyun::Serverless::MNSTopic
210244

211245
创建消息服务 MNS 中的 topic

docs/specs/2018-04-03.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ All property names in Aliyun Fun are **case sensitive**.
6666
- [Aliyun::Serverless::CustomDomain](#aliyunserverlesscustomdomain)
6767
- [Aliyun::Serverless::Api](#aliyunserverlessapi)
6868
- [Aliyun::Serverless::TableStore](#aliyunserverlesstablestore)
69-
- [Aliyun:Serverless::TableStore::Table](#aliyunserverlesstablestoretable)
70-
- [Aliyun:Serverless::Log](#aliyunserverlesslog)
71-
- [Aliyun:Serverless::Log::Logstore](#aliyunserverlessloglogstore)
69+
- [Aliyun::Serverless::TableStore::Table](#aliyunserverlesstablestoretable)
70+
- [Aliyun::Serverless::Log](#aliyunserverlesslog)
71+
- [Aliyun::Serverless::Log::Logstore](#aliyunserverlessloglogstore)
7272
7373
#### Aliyun::Serverless::Service
7474
@@ -202,6 +202,41 @@ mytablestore: # tablestore name
202202
Type: STRING
203203
```
204204

205+
#### Aliyun::Serverless::Log
206+
207+
`Aliyun::Serverless::Log` resource creates a instance of [Project](https://www.alibabacloud.com/help/doc-detail/48873.htm).
208+
209+
##### Properties
210+
211+
Property Name | Type | Description
212+
---|:---:|---
213+
Description | `string` | **Required。** Description of the project.
214+
215+
##### Aliyun::Serverless::Log::Logstore
216+
217+
`Aliyun::Serverless::Log::Logstore` resource creates a instance of [Logstore](https://www.alibabacloud.com/help/doc-detail/48874.htm).
218+
219+
###### Properties
220+
221+
Property Name | Type | Description
222+
---|:---:|---
223+
TTL | `integer` | Data storage time in days, which is in the value range of 1 to 3600.
224+
shardCount | `integer` | The number of shards in this Logstore, which is in the range of 1 to 100.
225+
226+
#### Example:Aliyun::Serverless::Log
227+
228+
```yaml
229+
test-log-project:
230+
Type: 'Aliyun::Serverless::Log'
231+
Properties:
232+
Description: 'just test log'
233+
test-log-store:
234+
Type: 'Aliyun::Serverless::Log::Logstore'
235+
Properties:
236+
TTL: 10
237+
ShardCount: 1
238+
```
239+
205240
### Event source types
206241

207242
- [Timer](#Timer)

examples/sls_demo/template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Resources:
2828
log-com-m:
2929
Type: 'Aliyun::Serverless::Log'
3030
Properties:
31-
Description: 'just python log'
31+
Description: 'just python log'
3232
log-com-m:
3333
Type: 'Aliyun::Serverless::Log::Logstore'
3434
Properties:

0 commit comments

Comments
 (0)