/
CreateCustomAlarmParam.go
58 lines (43 loc) · 2.08 KB
/
CreateCustomAlarmParam.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2018 JDCLOUD.COM
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// NOTE: This class is auto generated by the jdcloud code generator program.
package models
type CreateCustomAlarmParam struct {
/* 聚合方式,多个维度聚合成1个维度时,多维度值之间的聚合方式。可选值:sum、avg、min、max */
AggrType string `json:"aggrType"`
/* 告警通知联系人 (Optional) */
BaseContact []BaseContact `json:"baseContact"`
/* 数据所有者,1云监控控制台; 2云鼎。默认为1
in: query (Optional) */
DataOwner int64 `json:"dataOwner"`
/* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足),至少指定一个 */
Dimensions []DimensionsParam `json:"dimensions"`
/* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */
Enabled int64 `json:"enabled"`
/* 回调数组 (Optional) */
MultiWebHook []WebHookOption `json:"multiWebHook"`
/* 命名空间 */
Namespace string `json:"namespace"`
/* 通知策略 (Optional) */
NoticeOption []NoticeOption `json:"noticeOption"`
/* 规则绑定资源所在地域 */
Region string `json:"region"`
/* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、''-''和"_" */
RuleName string `json:"ruleName"`
/* 规则的触发条件设置选项 */
RuleOption []BasicCustomRule `json:"ruleOption"`
/* (Optional) */
WebHookOption WebHookOption `json:"webHookOption"`
}