github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/modify_monitor_attribute.go (about) 1 package cws 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 time "time" 6 ) 7 8 // 修改监测任务的属性 9 // https://cloud.tencent.com/document/api/692/16746 10 11 type ModifyMonitorAttributeRequest struct { 12 // 扫描周期,单位小时,每X小时执行一次 13 Crontab int64 `name:"Crontab"` 14 // 首次扫描开始时间 15 FirstScanStartTime time.Time `name:"FirstScanStartTime"` 16 // 监测任务ID 17 MonitorId int64 `name:"MonitorId"` 18 // 监测状态:1-监测中;2-暂停监测 19 MonitorStatus int64 `name:"MonitorStatus"` 20 // 任务名称 21 Name string `name:"Name"` 22 // 扫描速率限制,每秒发送X个HTTP请求 23 RateLimit int64 `name:"RateLimit"` 24 // 区域 25 Region string `name:"Region"` 26 // 扫描模式,normal-正常扫描;deep-深度扫描 27 ScannerType string `name:"ScannerType"` 28 // 站点的url列表 29 Urls []*string `name:"Urls"` 30 } 31 32 func (req *ModifyMonitorAttributeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyMonitorAttributeResponse, error) { 33 resp := &ModifyMonitorAttributeResponse{} 34 err := client.Request("cws", "ModifyMonitorAttribute", "2018-03-12").Do(req, resp) 35 return resp, err 36 } 37 38 type ModifyMonitorAttributeResponse struct { 39 github_com_morlay_goqcloud.TencentCloudBaseResponse 40 }