@@ -71,7 +71,6 @@ type CreateAlarmRequest struct {
7171
7272 /* 通知对象组ID (Optional) */
7373 GroupId * string `json:"groupId"`
74-
7574}
7675
7776/*
@@ -171,77 +170,62 @@ func NewCreateAlarmRequestWithoutParam() *CreateAlarmRequest {
171170func (r * CreateAlarmRequest ) SetIdc (idc string ) {
172171 r .Idc = & idc
173172}
174-
175173/* param resourceType: 资源类型,bandwidth:带宽(Optional) */
176174func (r * CreateAlarmRequest ) SetResourceType (resourceType string ) {
177175 r .ResourceType = & resourceType
178176}
179-
180177/* param resourceId: 带宽实例ID(Optional) */
181178func (r * CreateAlarmRequest ) SetResourceId (resourceId string ) {
182179 r .ResourceId = & resourceId
183180}
184-
185181/* param name: 规则名称(Optional) */
186182func (r * CreateAlarmRequest ) SetName (name string ) {
187183 r .Name = & name
188184}
189-
190185/* param metric: 监控项,bandwidthTrafficIn:上行实时流量 bandwidthTrafficOut:下行实时流量(Optional) */
191186func (r * CreateAlarmRequest ) SetMetric (metric string ) {
192187 r .Metric = & metric
193188}
194-
195189/* param period: 统计周期(单位:分钟)(Optional) */
196190func (r * CreateAlarmRequest ) SetPeriod (period int ) {
197191 r .Period = & period
198192}
199-
200193/* param statisticMethod: 统计方法:平均值=avg、最大值=max、最小值=min(Optional) */
201194func (r * CreateAlarmRequest ) SetStatisticMethod (statisticMethod string ) {
202195 r .StatisticMethod = & statisticMethod
203196}
204-
205197/* param operator: 计算方式 >=、>、<、<=、=、!=(Optional) */
206198func (r * CreateAlarmRequest ) SetOperator (operator string ) {
207199 r .Operator = & operator
208200}
209-
210201/* param threshold: 阈值(Optional) */
211202func (r * CreateAlarmRequest ) SetThreshold (threshold float64 ) {
212203 r .Threshold = & threshold
213204}
214-
215205/* param times: 连续多少次后报警(Optional) */
216206func (r * CreateAlarmRequest ) SetTimes (times int ) {
217207 r .Times = & times
218208}
219-
220209/* param noticePeriod: 通知周期 单位:小时(Optional) */
221210func (r * CreateAlarmRequest ) SetNoticePeriod (noticePeriod int ) {
222211 r .NoticePeriod = & noticePeriod
223212}
224-
225213/* param status: 规则状态 disabled:禁用 enabled:启用(Optional) */
226214func (r * CreateAlarmRequest ) SetStatus (status string ) {
227215 r .Status = & status
228216}
229-
230217/* param noticeMethod: 通知方式 all:全部 sms:短信 email:邮件(Optional) */
231218func (r * CreateAlarmRequest ) SetNoticeMethod (noticeMethod string ) {
232219 r .NoticeMethod = & noticeMethod
233220}
234-
235221/* param noticeObj: 通知对象 all:全部 persons:个人 groups:角色组(Optional) */
236222func (r * CreateAlarmRequest ) SetNoticeObj (noticeObj string ) {
237223 r .NoticeObj = & noticeObj
238224}
239-
240225/* param userId: 通知对象用户ID,若多个用逗号分隔(Optional) */
241226func (r * CreateAlarmRequest ) SetUserId (userId string ) {
242227 r .UserId = & userId
243228}
244-
245229/* param groupId: 通知对象组ID(Optional) */
246230func (r * CreateAlarmRequest ) SetGroupId (groupId string ) {
247231 r .GroupId = & groupId
0 commit comments