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

     1  package iot
     2  
     3  import (
     4  	time "time"
     5  
     6  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     7  )
     8  
     9  // 获取设备日志
    10  // https://cloud.tencent.com/document/api/568/16523
    11  
    12  type GetDeviceLogRequest struct {
    13  	// 设备名称列表,最大支持100台
    14  	DeviceNames []*string `name:"DeviceNames"`
    15  	// 查询结束时间
    16  	EndTime time.Time `name:"EndTime"`
    17  	// 时间排序(desc/asc)
    18  	Order *string `name:"Order,omitempty"`
    19  	// 产品Id
    20  	ProductId string `name:"ProductId"`
    21  	// 区域
    22  	Region string `name:"Region"`
    23  	// 查询游标
    24  	ScrollId *string `name:"ScrollId,omitempty"`
    25  	// 查询数据量
    26  	Size *int64 `name:"Size,omitempty"`
    27  	// 查询开始时间
    28  	StartTime time.Time `name:"StartTime"`
    29  	// 日志类型(comm/status)
    30  	Type *string `name:"Type,omitempty"`
    31  }
    32  
    33  func (req *GetDeviceLogRequest) Invoke(client github_com_morlay_goqcloud.Client) (*GetDeviceLogResponse, error) {
    34  	resp := &GetDeviceLogResponse{}
    35  	err := client.Request("iot", "GetDeviceLog", "2018-01-23").Do(req, resp)
    36  	return resp, err
    37  }
    38  
    39  type GetDeviceLogResponse struct {
    40  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    41  	// 设备日志
    42  	DeviceLog []*Object `json:"DeviceLog"`
    43  	// 查询游标
    44  	ScrollId []*string `json:"ScrollId"`
    45  }