-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 Bump 0.9.11, support project data redundancy (#304)
- Loading branch information
1 parent
9552eef
commit 67f74af
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '0.9.10' | ||
__version__ = '0.9.11' | ||
|
||
import sys | ||
OS_VERSION = str(sys.platform) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from aliyun.log import LogClient | ||
|
||
client = LogClient('cn-hangzhou.log.aliyuncs.com', | ||
'your access key id', | ||
'your access key secret') | ||
|
||
project = 'your-project' | ||
|
||
client.create_project(project, 'hello', data_redundancy_type='LRS') # LRS or ZRS | ||
resp = client.get_project(project) | ||
|
||
print(resp.get_data_redundancy_type()) | ||
assert resp.get_data_redundancy_type() == 'LRS' | ||
client.delete_project(project) |