github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cis/describe_container_log.go (about) 1 package cis 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 获取容器日志信息 8 // https://cloud.tencent.com/document/api/858/17770 9 10 type DescribeContainerLogRequest struct { 11 // 容器名称 12 ContainerName *string `name:"ContainerName,omitempty"` 13 // 容器实例名称 14 InstanceName string `name:"InstanceName"` 15 // 区域 16 Region string `name:"Region"` 17 // 日志起始时间 18 SinceTime *string `name:"SinceTime,omitempty"` 19 // 日志显示尾部行数 20 Tail *int64 `name:"Tail,omitempty"` 21 } 22 23 func (req *DescribeContainerLogRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeContainerLogResponse, error) { 24 resp := &DescribeContainerLogResponse{} 25 err := client.Request("cis", "DescribeContainerLog", "2018-04-08").Do(req, resp) 26 return resp, err 27 } 28 29 type DescribeContainerLogResponse struct { 30 github_com_morlay_goqcloud.TencentCloudBaseResponse 31 // 容器日志数组 32 ContainerLogList []*ContainerLog `json:"ContainerLogList"` 33 }