github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/yunjing/describe_security_dynamics.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/30330
     9  
    10  type DescribeSecurityDynamicsRequest struct {
    11  	// 返回数量,默认为10,最大值为100。
    12  	Limit *int64 `name:"Limit,omitempty"`
    13  	// 偏移量,默认为0。
    14  	Offset *int64 `name:"Offset,omitempty"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *DescribeSecurityDynamicsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeSecurityDynamicsResponse, error) {
    20  	resp := &DescribeSecurityDynamicsResponse{}
    21  	err := client.Request("yunjing", "DescribeSecurityDynamics", "2018-02-28").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type DescribeSecurityDynamicsResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 安全事件消息数组。
    28  	SecurityDynamics []*SecurityDynamic `json:"SecurityDynamics"`
    29  	// 记录总数。
    30  	TotalCount int64 `json:"TotalCount"`
    31  }