Skip to content

Commit

Permalink
add more doc info for file based input
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Dec 18, 2017
1 parent 6872d38 commit 5661e7e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ You could store the content of one parameter into a file and pass it via the com
> aliyun log get_logs --request="file://./get_logs.json"
```


the content in file `get_logs.json` as below. Note: the `\` is unnecessary to escape the ".
```json
{
"topic": "",
"logstore": "logstore1",
"project": "project1",
"toTime": "12345679",
"offset": "0",
"query": "*",
"line": "10",
"fromTime": "1234567",
"reverse": "true"
}
```

**Parameter Validation**

- Mandatory check: if one mandatory parameter is missed, it will report error with usage info.
Expand Down
17 changes: 17 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,23 @@ endpoint=cn-hangzhou.log.aliyun.com
> aliyun log get_logs --request="file://./get_logs.json"
```


文件`get_logs.json`内容如下, 注意: 文件中不需要反斜杠`\`来转义.

```json
{
"topic": "",
"logstore": "logstore1",
"project": "project1",
"toTime": "12345679",
"offset": "0",
"query": "*",
"line": "10",
"fromTime": "1234567",
"reverse": "true"
}
```

**参数校验**

- 必填的参数没有填写时会报错, 输出参数列表
Expand Down

0 comments on commit 5661e7e

Please sign in to comment.