logs

package
v0.0.0-...-44f07b8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateLogFileDownloadRequest

type GenerateLogFileDownloadRequest struct {
	ApiKey   string
	Filename string
}

func (*GenerateLogFileDownloadRequest) GenerateUrl

func (r *GenerateLogFileDownloadRequest) GenerateUrl() (string, url.Values, error)

func (*GenerateLogFileDownloadRequest) GetApiKey

func (r *GenerateLogFileDownloadRequest) GetApiKey() string

func (*GenerateLogFileDownloadRequest) GetFilename

func (r *GenerateLogFileDownloadRequest) GetFilename() string

type GenerateLogFileDownloadResponse

type GenerateLogFileDownloadResponse struct {
	RequestID      string
	ResponseTime   float32
	RateLimitState string
	DownloadLink   string
}

func (*GenerateLogFileDownloadResponse) SetRateLimitState

func (rm *GenerateLogFileDownloadResponse) SetRateLimitState(state string)

func (*GenerateLogFileDownloadResponse) SetRequestID

func (rm *GenerateLogFileDownloadResponse) SetRequestID(requestID string)

func (*GenerateLogFileDownloadResponse) SetResponseTime

func (rm *GenerateLogFileDownloadResponse) SetResponseTime(responseTime float32)

type ListLogFilesRequest

type ListLogFilesRequest struct {
	ApiKey string
	Marker string
	Limit  string
}

func (*ListLogFilesRequest) GenerateUrl

func (r *ListLogFilesRequest) GenerateUrl() (string, url.Values, error)

func (*ListLogFilesRequest) GetApiKey

func (r *ListLogFilesRequest) GetApiKey() string

func (*ListLogFilesRequest) GetMarker

func (r *ListLogFilesRequest) GetMarker() string

type ListLogFilesResponse

type ListLogFilesResponse struct {
	RequestID      string
	ResponseTime   float32
	RateLimitState string
	Marker         string `json:"marker"`
	Logs           []Log  `json:"data"`
}

func (*ListLogFilesResponse) SetRateLimitState

func (rm *ListLogFilesResponse) SetRateLimitState(state string)

SetRateLimitState sets state of rate limit.

func (*ListLogFilesResponse) SetRequestID

func (rm *ListLogFilesResponse) SetRequestID(requestID string)

SetRequestID sets identifier of request.

func (*ListLogFilesResponse) SetResponseTime

func (rm *ListLogFilesResponse) SetResponseTime(responseTime float32)

SetResponseTime sets request execution time.

type Log

type Log struct {
	Filename string `json:"filename,omitempty"`
	Date     int    `json:"date,omitempty"`
	Size     int    `json:"size,omitempty"`
}

Jump to

Keyboard shortcuts

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