v20181203

package
v3.0.166+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-12-03"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) DescribeStatus

func (c *Client) DescribeStatus(request *DescribeStatusRequest) (response *DescribeStatusResponse, err error)

查询指定md5样本是否分析完成,并获取分析日志下载地址。

func (*Client) StartAnalyse

func (c *Client) StartAnalyse(request *StartAnalyseRequest) (response *StartAnalyseResponse, err error)

上传样本到哈勃进行分析,异步生成分析日志。

type DescribeStatusRequest

type DescribeStatusRequest struct {
	*tchttp.BaseRequest

	// 购买服务后获得的授权帐号,用于保证请求有效性
	Pk *string `json:"Pk,omitempty" name:"Pk"`

	// 需要获取分析结果的样本md5
	Md5 *string `json:"Md5,omitempty" name:"Md5"`
}

func NewDescribeStatusRequest

func NewDescribeStatusRequest() (request *DescribeStatusRequest)

func (*DescribeStatusRequest) FromJsonString

func (r *DescribeStatusRequest) FromJsonString(s string) error

func (*DescribeStatusRequest) ToJsonString

func (r *DescribeStatusRequest) ToJsonString() string

type DescribeStatusResponse

type DescribeStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 接口调用状态,1表示成功,非1表示失败
		Status *int64 `json:"Status,omitempty" name:"Status"`

		// 成功时返回success,失败时返回具体的失败原因,如样本分析未完成
		Info *string `json:"Info,omitempty" name:"Info"`

		// 成功时返回样本日志下载地址,该地址10分钟内有效
		Data *string `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeStatusResponse

func NewDescribeStatusResponse() (response *DescribeStatusResponse)

func (*DescribeStatusResponse) FromJsonString

func (r *DescribeStatusResponse) FromJsonString(s string) error

func (*DescribeStatusResponse) ToJsonString

func (r *DescribeStatusResponse) ToJsonString() string

type StartAnalyseRequest

type StartAnalyseRequest struct {
	*tchttp.BaseRequest

	// 购买服务后获得的授权帐号,用于保证请求有效性
	Pk *string `json:"Pk,omitempty" name:"Pk"`

	// 样本md5,用于对下载获得的样本完整性进行校验
	Md5 *string `json:"Md5,omitempty" name:"Md5"`

	// 待分析样本下载地址
	DlUrl *string `json:"DlUrl,omitempty" name:"DlUrl"`
}

func NewStartAnalyseRequest

func NewStartAnalyseRequest() (request *StartAnalyseRequest)

func (*StartAnalyseRequest) FromJsonString

func (r *StartAnalyseRequest) FromJsonString(s string) error

func (*StartAnalyseRequest) ToJsonString

func (r *StartAnalyseRequest) ToJsonString() string

type StartAnalyseResponse

type StartAnalyseResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 接口调用状态,1表示成功,非1表示失败
		Status *int64 `json:"Status,omitempty" name:"Status"`

		// 成功时返回success,失败时返回具体的失败原因
		Info *string `json:"Info,omitempty" name:"Info"`

		// 保留字段
		Data *string `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewStartAnalyseResponse

func NewStartAnalyseResponse() (response *StartAnalyseResponse)

func (*StartAnalyseResponse) FromJsonString

func (r *StartAnalyseResponse) FromJsonString(s string) error

func (*StartAnalyseResponse) ToJsonString

func (r *StartAnalyseResponse) ToJsonString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL