github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/describe_vuls_number_timeline.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/18087
     9  
    10  type DescribeVulsNumberTimelineRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  }
    14  
    15  func (req *DescribeVulsNumberTimelineRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeVulsNumberTimelineResponse, error) {
    16  	resp := &DescribeVulsNumberTimelineResponse{}
    17  	err := client.Request("cws", "DescribeVulsNumberTimeline", "2018-03-12").Do(req, resp)
    18  	return resp, err
    19  }
    20  
    21  type DescribeVulsNumberTimelineResponse struct {
    22  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    23  	// 统计数据记录数量。
    24  	TotalCount int64 `json:"TotalCount"`
    25  	// 用户漏洞数随时间变化统计数据。
    26  	VulsTimeline []*VulsTimeline `json:"VulsTimeline"`
    27  }