github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/describe_monitors.go (about)

     1  package cws
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查看监控任务
     8  // https://cloud.tencent.com/document/api/692/16745
     9  
    10  type DescribeMonitorsRequest struct {
    11  	// 过滤条件
    12  	Filters []*Filter `name:"Filters,omitempty"`
    13  	// 返回数量,默认为10,最大值为100
    14  	Limit *int64 `name:"Limit,omitempty"`
    15  	// 监控任务ID列表
    16  	MonitorIds []*int64 `name:"MonitorIds,omitempty"`
    17  	// 偏移量,默认为0
    18  	Offset *int64 `name:"Offset,omitempty"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  }
    22  
    23  func (req *DescribeMonitorsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeMonitorsResponse, error) {
    24  	resp := &DescribeMonitorsResponse{}
    25  	err := client.Request("cws", "DescribeMonitors", "2018-03-12").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type DescribeMonitorsResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 监控任务列表。
    32  	Monitors []*MonitorsDetail `json:"Monitors"`
    33  	// 监控任务数量。
    34  	TotalCount int64 `json:"TotalCount"`
    35  }