github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/yunjing/modify_alarm_attribute.go (about) 1 package yunjing 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 修改告警设置 8 // https://cloud.tencent.com/document/api/296/19864 9 10 type ModifyAlarmAttributeRequest struct { 11 // 告警项目。Offline:防护软件离线Malware:发现木马文件NonlocalLogin:发现异地登录行为CrackSuccess:被暴力破解成功 12 Attribute string `name:"Attribute"` 13 // 区域 14 Region string `name:"Region"` 15 // 告警项目属性。CLOSE:关闭OPEN:打开 16 Value string `name:"Value"` 17 } 18 19 func (req *ModifyAlarmAttributeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyAlarmAttributeResponse, error) { 20 resp := &ModifyAlarmAttributeResponse{} 21 err := client.Request("yunjing", "ModifyAlarmAttribute", "2018-02-28").Do(req, resp) 22 return resp, err 23 } 24 25 type ModifyAlarmAttributeResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }