zls

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* Zenlayer.com Inc. * Copyright (c) 2014-2023 All Rights Reserved.

Index

Constants

View Source
const (
	APIVersion = "2023-08-04"
	SERVICE    = "zls"
)
View Source
const (

	// parameter illegal time
	INVALID_PARAMETER__ILLEGAL_TIME = "Invalid.Paramter.Illegal.Time"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(config *common.Config, secretKeyId, secretKeyPassword string) (client *Client, err error)

func NewClientWithSecretKey

func NewClientWithSecretKey(secretKeyId, secretKeyPassword string) (client *Client, err error)

func (*Client) DescribeLogs

func (c *Client) DescribeLogs(request *DescribeLogsRequest) (response *DescribeLogsResponse, err error)

DescribeLogs 本接口(DescribeLogs)用于查询审计日志列表。

Possible error codes to return:

type DescribeLogsRequest

type DescribeLogsRequest struct {
	*common.BaseRequest

	StartTime string `json:"startTime,omitempty"`

	EndTime string `json:"endTime,omitempty"`

	ResUid string `json:"resUid,omitempty"`

	ResEvent string `json:"resEvent,omitempty"`

	ClientIP string `json:"clientIP,omitempty"`

	Size int `json:"size,omitempty"`

	Cursor []*interface{} `json:"cursor,omitempty"`
}

func NewDescribeLogsRequest

func NewDescribeLogsRequest() (request *DescribeLogsRequest)

type DescribeLogsResponse

type DescribeLogsResponse struct {
	*common.BaseResponse

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	Response *DescribeLogsResponseParam `json:"response"`
}

func NewDescribeLogsResponse

func NewDescribeLogsResponse() (response *DescribeLogsResponse)

type DescribeLogsResponseParam

type DescribeLogsResponseParam struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId string `json:"requestId,omitempty"`

	Cursor []*interface{} `json:"cursor,omitempty"`

	DataSet []*LogInfo `json:"dataSet,omitempty"`
}

type LogInfo

type LogInfo struct {
	ResUid string `json:"resUid,omitempty"`

	ResType string `json:"resType,omitempty"`

	ResEvent string `json:"resEvent,omitempty"`

	OpsTime string `json:"opsTime,omitempty"`

	EventSource string `json:"eventSource,omitempty"`

	ApiVersion string `json:"apiVersion,omitempty"`

	OpsUser string `json:"opsUser,omitempty"`

	ClientIP string `json:"clientIP,omitempty"`

	Request string `json:"request,omitempty"`

	Response string `json:"response,omitempty"`
}

Jump to

Keyboard shortcuts

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