-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bd1dbc
commit e74888f
Showing
45 changed files
with
3,358 additions
and
557 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
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 +1 @@ | ||
__version__ = '3.0.1043.1' | ||
__version__ = '3.0.1044.1' |
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
31 changes: 31 additions & 0 deletions
31
tccli/examples/monitor/v20180724/CreatePrometheusAlertGroup.md
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,31 @@ | ||
**Example 1: 使用通知模板创建告警规则** | ||
|
||
使用通知模板创建告警规则 | ||
|
||
Input: | ||
|
||
``` | ||
tccli monitor CreatePrometheusAlertGroup --cli-unfold-argument \ | ||
--InstanceId prom-7vp71mk0 \ | ||
--GroupName 创建告警分组测试 \ | ||
--AMPReceivers notice-xxxxxx \ | ||
--Rules.0.RuleName 规则-1 \ | ||
--Rules.0.Labels.0.Key k1 \ | ||
--Rules.0.Labels.0.Value v1 \ | ||
--Rules.0.Annotations.0.Key summary \ | ||
--Rules.0.Annotations.0.Value {{$value}} \ | ||
--Rules.0.Annotations.1.Key describe \ | ||
--Rules.0.Annotations.1.Value 规则1告警 \ | ||
--Rules.0.Expr expr1 | ||
``` | ||
|
||
Output: | ||
``` | ||
{ | ||
"Response": { | ||
"GroupId": "alert-2zvqof1a", | ||
"RequestId": "02c92b99-abc9-431b-8b08-42b9977d51cf" | ||
} | ||
} | ||
``` | ||
|
21 changes: 21 additions & 0 deletions
21
tccli/examples/monitor/v20180724/DeletePrometheusAlertGroups.md
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,21 @@ | ||
**Example 1: 删除告警分组** | ||
|
||
删除告警分组 | ||
|
||
Input: | ||
|
||
``` | ||
tccli monitor DeletePrometheusAlertGroups --cli-unfold-argument \ | ||
--InstanceId prom-7vp71mk0 \ | ||
--GroupIds alert-ol72w8vy | ||
``` | ||
|
||
Output: | ||
``` | ||
{ | ||
"Response": { | ||
"RequestId": "09cffdc9-047e-45c5-b0eb-6d7cbfee5048" | ||
} | ||
} | ||
``` | ||
|
Oops, something went wrong.