get_audits

package
v7.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

查询审计日志列表

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Marker string       // 下页标记
	List   GetAuditLogs // 审计日志列表
}

审计日志信息

func (*Data) MarshalJSON

func (j *Data) MarshalJSON() ([]byte, error)

func (*Data) UnmarshalJSON

func (j *Data) UnmarshalJSON(data []byte) error

type GetAuditLog

type GetAuditLog struct {
	Id           string // 记录 ID
	RootUid      int64  // 根用户 uid
	Iuid         int64  // 子账号 uid
	Service      string // 接口操作对应的服务
	Action       string // 接口操作别名
	CreatedAt    string // 日志创建时间
	EventTime    string // 请求发生时间
	DurationMs   int64  // 请求持续时间,毫秒
	SourceIp     string // 源 IP
	UserEvent    string // 用户代理
	ErrorCode    int64  // 错误码
	ErrorMessage string // 错误消息
}

返回的审计日志

func (*GetAuditLog) MarshalJSON

func (j *GetAuditLog) MarshalJSON() ([]byte, error)

func (*GetAuditLog) UnmarshalJSON

func (j *GetAuditLog) UnmarshalJSON(data []byte) error

type GetAuditLogs

type GetAuditLogs = []GetAuditLog

返回的审计日志列表

type GetAuditLogsData

type GetAuditLogsData = Data

返回的审计日志列表信息

type GetAuditLogsResp

type GetAuditLogsResp = Response

返回的审计日志列表响应

type Request

type Request struct {
	Iuid        int64                           // IAM 子账号 UID
	Service     string                          // 操作对应的服务别名
	Action      string                          // 操作别名
	Resource    string                          // 操作别名
	StartTime   string                          // 操作开始时间
	EndTime     string                          // 操作截止时间
	Marker      string                          // 下页标记
	Limit       int64                           // 分页大小,默认 20,最大 2000
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

type Response struct {
	Data GetAuditLogsData // 审计日志信息
}

获取 API 所用的响应

func (*Response) MarshalJSON

func (j *Response) MarshalJSON() ([]byte, error)

func (*Response) UnmarshalJSON

func (j *Response) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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