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 (*Data) UnmarshalJSON ¶
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 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 (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.