model

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseUser

type BaseUser struct {

	// 账号ID,参见《云审计服务API参考》“获取账号ID和项目ID”章节。
	Id *string `json:"id,omitempty"`

	// 账号名称。
	Name *string `json:"name,omitempty"`
}

用户信息。

func (BaseUser) String

func (o BaseUser) String() string

type CreateNotificationRequest added in v0.0.68

type CreateNotificationRequest struct {
	Body *CreateNotificationRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateNotificationRequest) String added in v0.0.68

func (o CreateNotificationRequest) String() string

type CreateNotificationRequestBody added in v0.0.68

type CreateNotificationRequestBody struct {

	// 标识关键操作名称。
	NotificationName string `json:"notification_name"`

	// 标识操作类型。 目前支持的操作类型有完整类型(complete)和自定义类型(customized)。 完整类型下,CTS发送通知的对象为已对接服务的所有事件,此时不用指定operations和notify_user_list字段。 自定义类型下,CTS发送通知的对象是在operations列表中指定的事件。
	OperationType CreateNotificationRequestBodyOperationType `json:"operation_type"`

	// 操作事件列表。
	Operations *[]Operations `json:"operations,omitempty"`

	// 通知用户列表,目前最多支持对10个用户组和50个用户发起的操作进行配置。
	NotifyUserList *[]NotificationUsers `json:"notify_user_list,omitempty"`

	// 消息通知服务的topic_urn或者函数工作流的func_urn。 - 消息通知服务的topic_urn可以通过消息通知服务的查询主题列表API获取,示例:urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2。 - 函数工作流的func_urn可以通过函数工作流的获取函数列表API获取,示例:urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test。
	TopicId *string `json:"topic_id,omitempty"`

	Filter *Filter `json:"filter,omitempty"`
}

创建通知规则的请求体

func (CreateNotificationRequestBody) String added in v0.0.68

type CreateNotificationRequestBodyOperationType added in v0.0.68

type CreateNotificationRequestBodyOperationType struct {
	// contains filtered or unexported fields
}

func (CreateNotificationRequestBodyOperationType) MarshalJSON added in v0.0.68

func (*CreateNotificationRequestBodyOperationType) UnmarshalJSON added in v0.0.68

func (CreateNotificationRequestBodyOperationType) Value added in v0.0.90

type CreateNotificationRequestBodyOperationTypeEnum added in v0.0.68

type CreateNotificationRequestBodyOperationTypeEnum struct {
	COMPLETE   CreateNotificationRequestBodyOperationType
	CUSTOMIZED CreateNotificationRequestBodyOperationType
}

func GetCreateNotificationRequestBodyOperationTypeEnum added in v0.0.68

func GetCreateNotificationRequestBodyOperationTypeEnum() CreateNotificationRequestBodyOperationTypeEnum

type CreateNotificationResponse added in v0.0.68

type CreateNotificationResponse struct {

	// 通知名称。
	NotificationName *string `json:"notification_name,omitempty"`

	// 操作类型,完整和自定义。
	OperationType *CreateNotificationResponseOperationType `json:"operation_type,omitempty"`

	// 操作事件列表。
	Operations *[]Operations `json:"operations,omitempty"`

	// 通知用户列表,目前最多支持对10个用户组和50个用户发起的操作进行配置。
	NotifyUserList *[]NotificationUsers `json:"notify_user_list,omitempty"`

	// 通知状态,启用和停用。
	Status *CreateNotificationResponseStatus `json:"status,omitempty"`

	// 消息通知服务(SMN)主题的唯一的资源标识,可通过查询主题列表获取该标识。
	TopicId *string `json:"topic_id,omitempty"`

	// 通知的唯一标识ID。
	NotificationId *string `json:"notification_id,omitempty"`

	// 通知类型,消息通知,函数触发器。
	NotificationType *CreateNotificationResponseNotificationType `json:"notification_type,omitempty"`

	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 通知规则创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`

	Filter         *Filter `json:"filter,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateNotificationResponse) String added in v0.0.68

type CreateNotificationResponseNotificationType added in v0.0.68

type CreateNotificationResponseNotificationType struct {
	// contains filtered or unexported fields
}

func (CreateNotificationResponseNotificationType) MarshalJSON added in v0.0.68

func (*CreateNotificationResponseNotificationType) UnmarshalJSON added in v0.0.68

func (CreateNotificationResponseNotificationType) Value added in v0.0.90

type CreateNotificationResponseNotificationTypeEnum added in v0.0.68

type CreateNotificationResponseNotificationTypeEnum struct {
	SMN CreateNotificationResponseNotificationType
	FUN CreateNotificationResponseNotificationType
}

func GetCreateNotificationResponseNotificationTypeEnum added in v0.0.68

func GetCreateNotificationResponseNotificationTypeEnum() CreateNotificationResponseNotificationTypeEnum

type CreateNotificationResponseOperationType added in v0.0.68

type CreateNotificationResponseOperationType struct {
	// contains filtered or unexported fields
}

func (CreateNotificationResponseOperationType) MarshalJSON added in v0.0.68

func (c CreateNotificationResponseOperationType) MarshalJSON() ([]byte, error)

func (*CreateNotificationResponseOperationType) UnmarshalJSON added in v0.0.68

func (c *CreateNotificationResponseOperationType) UnmarshalJSON(b []byte) error

func (CreateNotificationResponseOperationType) Value added in v0.0.90

type CreateNotificationResponseOperationTypeEnum added in v0.0.68

type CreateNotificationResponseOperationTypeEnum struct {
	CUSTOMIZED CreateNotificationResponseOperationType
	COMPLETE   CreateNotificationResponseOperationType
}

func GetCreateNotificationResponseOperationTypeEnum added in v0.0.68

func GetCreateNotificationResponseOperationTypeEnum() CreateNotificationResponseOperationTypeEnum

type CreateNotificationResponseStatus added in v0.0.68

type CreateNotificationResponseStatus struct {
	// contains filtered or unexported fields
}

func (CreateNotificationResponseStatus) MarshalJSON added in v0.0.68

func (c CreateNotificationResponseStatus) MarshalJSON() ([]byte, error)

func (*CreateNotificationResponseStatus) UnmarshalJSON added in v0.0.68

func (c *CreateNotificationResponseStatus) UnmarshalJSON(b []byte) error

func (CreateNotificationResponseStatus) Value added in v0.0.90

type CreateNotificationResponseStatusEnum added in v0.0.68

type CreateNotificationResponseStatusEnum struct {
	ENABLED  CreateNotificationResponseStatus
	DISABLED CreateNotificationResponseStatus
}

func GetCreateNotificationResponseStatusEnum added in v0.0.68

func GetCreateNotificationResponseStatusEnum() CreateNotificationResponseStatusEnum

type CreateTrackerRequest

type CreateTrackerRequest struct {
	Body *CreateTrackerRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTrackerRequest) String

func (o CreateTrackerRequest) String() string

type CreateTrackerRequestBody

type CreateTrackerRequestBody struct {

	// 标识追踪器类型。 目前支持系统追踪器类型有管理类追踪器(system)和数据类追踪器(data)。 数据类追踪器和管理类追踪器共同参数有:is_lts_enabled, obs_info; 管理类追踪器参数:is_support_trace_files_encryption, kms_id, is_support_validate, is_support_validate; 数据类追踪器参数:tracker_name, data_bucket。
	TrackerType CreateTrackerRequestBodyTrackerType `json:"tracker_type"`

	// 标识追踪器名称。 当\"tracker_type\"参数值为\"system\"时该参数为默认值\"system\"。 当\"tracker_type\"参数值为\"data\"时该参数需要指定追踪器名称\"。
	TrackerName string `json:"tracker_name"`

	// 是否打开事件分析。
	IsLtsEnabled *bool `json:"is_lts_enabled,omitempty"`

	ObsInfo *TrackerObsInfo `json:"obs_info,omitempty"`

	// 事件文件转储加密功能开关。 当\"tracker_type\"参数值为\"system\"时该参数值有效。 该参数必须与kms_id参数同时使用。
	IsSupportTraceFilesEncryption *bool `json:"is_support_trace_files_encryption,omitempty"`

	// 事件文件转储加密所采用的秘钥id(从KMS获取)。 当\"tracker_type\"参数值为\"system\"时该参数值有效。 当\"is_support_trace_files_encryption\"参数值为“是”时,此参数为必选项。
	KmsId *string `json:"kms_id,omitempty"`

	// 事件文件转储时是否打开事件文件校验。 当\"tracker_type\"参数值为\"system\"时该参数值有效。
	IsSupportValidate *bool `json:"is_support_validate,omitempty"`

	DataBucket *DataBucket `json:"data_bucket,omitempty"`
}

func (CreateTrackerRequestBody) String

func (o CreateTrackerRequestBody) String() string

type CreateTrackerRequestBodyTrackerType

type CreateTrackerRequestBodyTrackerType struct {
	// contains filtered or unexported fields
}

func (CreateTrackerRequestBodyTrackerType) MarshalJSON

func (c CreateTrackerRequestBodyTrackerType) MarshalJSON() ([]byte, error)

func (*CreateTrackerRequestBodyTrackerType) UnmarshalJSON

func (c *CreateTrackerRequestBodyTrackerType) UnmarshalJSON(b []byte) error

func (CreateTrackerRequestBodyTrackerType) Value added in v0.0.90

type CreateTrackerRequestBodyTrackerTypeEnum

type CreateTrackerRequestBodyTrackerTypeEnum struct {
	SYSTEM CreateTrackerRequestBodyTrackerType
	DATA   CreateTrackerRequestBodyTrackerType
}

func GetCreateTrackerRequestBodyTrackerTypeEnum

func GetCreateTrackerRequestBodyTrackerTypeEnum() CreateTrackerRequestBodyTrackerTypeEnum

type CreateTrackerResponse

type CreateTrackerResponse struct {

	// 追踪器唯一标识。
	Id *string `json:"id,omitempty"`

	// 追踪器创建时间戳。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 事件文件转储加密所采用的秘钥id(从KMS获取)。 当\"tracker_type\"参数值为\"system\"和\"is_support_trace_files_encryption\"参数值为“是”时,此参数为必选项。
	KmsId *string `json:"kms_id,omitempty"`

	// 是否打开事件文件校验。当前环境仅\"tracker_type\"参数值为\"system\"时支持该功能。
	IsSupportValidate *bool `json:"is_support_validate,omitempty"`

	Lts *Lts `json:"lts,omitempty"`

	// 标识追踪器类型。 目前支持系统追踪器类型有管理类追踪器(system)和数据类追踪器(data)。
	TrackerType *CreateTrackerResponseTrackerType `json:"tracker_type,omitempty"`

	// 账号ID,参见《云审计服务API参考》“获取账号ID和项目ID”章节。
	DomainId *string `json:"domain_id,omitempty"`

	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 标识追踪器名称,当前版本默认为“system”。
	TrackerName *string `json:"tracker_name,omitempty"`

	// 标识追踪器状态,包括正常(enabled),停止(disabled)和异常(error)三种状态,状态为异常时需通过明细(detail)字段说明错误来源。
	Status *CreateTrackerResponseStatus `json:"status,omitempty"`

	// 该参数仅在追踪器状态异常时返回,用于标识追踪器异常的原因,包括桶策略异常(bucketPolicyError),桶不存在(noBucket)和欠费或冻结(arrears)三种原因。
	Detail *string `json:"detail,omitempty"`

	// 事件文件转储加密功能开关。 该参数必须与kms_id参数同时使用。 当前环境仅\"tracker_type\"参数值为\"system\"时支持该功能。
	IsSupportTraceFilesEncryption *bool `json:"is_support_trace_files_encryption,omitempty"`

	ObsInfo *ObsInfo `json:"obs_info,omitempty"`

	DataBucket     *DataBucketQuery `json:"data_bucket,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (CreateTrackerResponse) String

func (o CreateTrackerResponse) String() string

type CreateTrackerResponseStatus

type CreateTrackerResponseStatus struct {
	// contains filtered or unexported fields
}

func (CreateTrackerResponseStatus) MarshalJSON

func (c CreateTrackerResponseStatus) MarshalJSON() ([]byte, error)

func (*CreateTrackerResponseStatus) UnmarshalJSON

func (c *CreateTrackerResponseStatus) UnmarshalJSON(b []byte) error

func (CreateTrackerResponseStatus) Value added in v0.0.90

type CreateTrackerResponseStatusEnum

type CreateTrackerResponseStatusEnum struct {
	ENABLED  CreateTrackerResponseStatus
	DISABLED CreateTrackerResponseStatus
}

func GetCreateTrackerResponseStatusEnum

func GetCreateTrackerResponseStatusEnum() CreateTrackerResponseStatusEnum

type CreateTrackerResponseTrackerType

type CreateTrackerResponseTrackerType struct {
	// contains filtered or unexported fields
}

func (CreateTrackerResponseTrackerType) MarshalJSON

func (c CreateTrackerResponseTrackerType) MarshalJSON() ([]byte, error)

func (*CreateTrackerResponseTrackerType) UnmarshalJSON

func (c *CreateTrackerResponseTrackerType) UnmarshalJSON(b []byte) error

func (CreateTrackerResponseTrackerType) Value added in v0.0.90

type CreateTrackerResponseTrackerTypeEnum

type CreateTrackerResponseTrackerTypeEnum struct {
	SYSTEM CreateTrackerResponseTrackerType
	DATA   CreateTrackerResponseTrackerType
}

func GetCreateTrackerResponseTrackerTypeEnum

func GetCreateTrackerResponseTrackerTypeEnum() CreateTrackerResponseTrackerTypeEnum

type CtsQuota added in v0.1.39

type CtsQuota struct {

	// quota资源类型。
	Type *string `json:"type,omitempty"`

	// 已使用的资源个数。
	Used *int64 `json:"used,omitempty"`

	// 总资源个数。
	Quota *int64 `json:"quota,omitempty"`
}

func (CtsQuota) String added in v0.1.39

func (o CtsQuota) String() string

type DataBucket

type DataBucket struct {

	// 数据类追踪器追踪对象的桶名。 - 当启用或者停用数据类追踪器时,该参数为必选。 - 管理类追踪器无此参数。 - 追踪器一旦创建追踪桶无法修改。
	DataBucketName *string `json:"data_bucket_name,omitempty"`

	// 数据类追踪器追踪的操作类型。 - 当启用或者停用数据类追踪器时,该参数为必选。 - 管理类追踪器无此参数。
	DataEvent *[]DataBucketDataEvent `json:"data_event,omitempty"`
}

func (DataBucket) String

func (o DataBucket) String() string

type DataBucketDataEvent

type DataBucketDataEvent struct {
	// contains filtered or unexported fields
}

func (DataBucketDataEvent) MarshalJSON

func (c DataBucketDataEvent) MarshalJSON() ([]byte, error)

func (*DataBucketDataEvent) UnmarshalJSON

func (c *DataBucketDataEvent) UnmarshalJSON(b []byte) error

func (DataBucketDataEvent) Value added in v0.0.90

func (c DataBucketDataEvent) Value() string

type DataBucketDataEventEnum

type DataBucketDataEventEnum struct {
	WRITE DataBucketDataEvent
	READ  DataBucketDataEvent
}

func GetDataBucketDataEventEnum

func GetDataBucketDataEventEnum() DataBucketDataEventEnum

type DataBucketQuery

type DataBucketQuery struct {

	// 标识OBS桶名称。由数字或字母开头,支持小写字母、数字、“-”、“.”,长度为3~63个字符。
	DataBucketName *string `json:"data_bucket_name,omitempty"`

	// 追踪桶日志是否支持搜索。
	SearchEnabled *bool `json:"search_enabled,omitempty"`

	// 数据类追踪器追踪对象的桶名。 - 当启用或者停用数据类追踪器时,该参数为必选。 - 管理类追踪器无此参数。 - 追踪器一旦创建追踪桶无法修改。
	DataEvent *[]DataBucketQueryDataEvent `json:"data_event,omitempty"`
}

追踪桶信息。

func (DataBucketQuery) String

func (o DataBucketQuery) String() string

type DataBucketQueryDataEvent

type DataBucketQueryDataEvent struct {
	// contains filtered or unexported fields
}

func (DataBucketQueryDataEvent) MarshalJSON

func (c DataBucketQueryDataEvent) MarshalJSON() ([]byte, error)

func (*DataBucketQueryDataEvent) UnmarshalJSON

func (c *DataBucketQueryDataEvent) UnmarshalJSON(b []byte) error

func (DataBucketQueryDataEvent) Value added in v0.0.90

func (c DataBucketQueryDataEvent) Value() string

type DataBucketQueryDataEventEnum

type DataBucketQueryDataEventEnum struct {
	WRITE DataBucketQueryDataEvent
	READ  DataBucketQueryDataEvent
}

func GetDataBucketQueryDataEventEnum

func GetDataBucketQueryDataEventEnum() DataBucketQueryDataEventEnum

type DeleteNotificationRequest added in v0.0.68

type DeleteNotificationRequest struct {

	// 标识关键操作通知id。 批量删除请使用逗号隔开,notification_id=\"xxx1,cccc2\"
	NotificationId string `json:"notification_id"`
}

Request Object

func (DeleteNotificationRequest) String added in v0.0.68

func (o DeleteNotificationRequest) String() string

type DeleteNotificationResponse added in v0.0.68

type DeleteNotificationResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteNotificationResponse) String added in v0.0.68

type DeleteTrackerRequest

type DeleteTrackerRequest struct {

	// 标识追踪器名称。 在不传入该字段的情况下,将删除当前租户所有的数据类追踪器。
	TrackerName *string `json:"tracker_name,omitempty"`

	// 标识追踪器类型。 目前仅支持数据类追踪器(data)的删除,默认值为\"data\"。
	TrackerType *DeleteTrackerRequestTrackerType `json:"tracker_type,omitempty"`
}

Request Object

func (DeleteTrackerRequest) String

func (o DeleteTrackerRequest) String() string

type DeleteTrackerRequestTrackerType

type DeleteTrackerRequestTrackerType struct {
	// contains filtered or unexported fields
}

func (DeleteTrackerRequestTrackerType) MarshalJSON

func (c DeleteTrackerRequestTrackerType) MarshalJSON() ([]byte, error)

func (*DeleteTrackerRequestTrackerType) UnmarshalJSON

func (c *DeleteTrackerRequestTrackerType) UnmarshalJSON(b []byte) error

func (DeleteTrackerRequestTrackerType) Value added in v0.0.90

type DeleteTrackerRequestTrackerTypeEnum

type DeleteTrackerRequestTrackerTypeEnum struct {
	DATA DeleteTrackerRequestTrackerType
}

func GetDeleteTrackerRequestTrackerTypeEnum

func GetDeleteTrackerRequestTrackerTypeEnum() DeleteTrackerRequestTrackerTypeEnum

type DeleteTrackerResponse

type DeleteTrackerResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTrackerResponse) String

func (o DeleteTrackerResponse) String() string

type Filter added in v0.0.97

type Filter struct {

	// 多条件关系。 - AND 表示所有过滤条件满足后生效。 - OR 表示有任意一个条件满足时生效。
	Condition FilterCondition `json:"condition"`

	// 是否打开高级筛选开关。
	IsSupportFilter bool `json:"is_support_filter"`

	// 高级过滤条件规则,示例如下:\"key != value\",格式为:字段 规则 值。 -字段取值范围:api_version,code,trace_rating,trace_type,resource_id,resource_name。 -规则:!= 或 =。 - 值:api_version正则约束:^(a-zA-Z0-9_-.){1,64}$;code:最小长度1,最大长度256;trace_rating枚举值:\"normal\", \"warning\", \"incident\";trace_type枚举值:\"ConsoleAction\", \"ApiCall\", \"SystemAction\";resource_id:最小长度1,最大长度350;resource_name:最小长度1,最大长度256
	Rule []string `json:"rule"`
}

关键操作通知高级筛选条件。

func (Filter) String added in v0.0.97

func (o Filter) String() string

type FilterCondition added in v0.0.97

type FilterCondition struct {
	// contains filtered or unexported fields
}

func (FilterCondition) MarshalJSON added in v0.0.97

func (c FilterCondition) MarshalJSON() ([]byte, error)

func (*FilterCondition) UnmarshalJSON added in v0.0.97

func (c *FilterCondition) UnmarshalJSON(b []byte) error

func (FilterCondition) Value added in v0.0.97

func (c FilterCondition) Value() string

type FilterConditionEnum added in v0.0.97

type FilterConditionEnum struct {
	AND FilterCondition
	OR  FilterCondition
}

func GetFilterConditionEnum added in v0.0.97

func GetFilterConditionEnum() FilterConditionEnum

type ListNotificationsRequest added in v0.0.68

type ListNotificationsRequest struct {

	// 通知类型。
	NotificationType ListNotificationsRequestNotificationType `json:"notification_type"`

	// 标识关键操作通知名称。 在不传入该字段的情况下,将查询当前租户所有的关键操作通知。
	NotificationName *string `json:"notification_name,omitempty"`
}

Request Object

func (ListNotificationsRequest) String added in v0.0.68

func (o ListNotificationsRequest) String() string

type ListNotificationsRequestNotificationType added in v0.0.68

type ListNotificationsRequestNotificationType struct {
	// contains filtered or unexported fields
}

func (ListNotificationsRequestNotificationType) MarshalJSON added in v0.0.68

func (*ListNotificationsRequestNotificationType) UnmarshalJSON added in v0.0.68

func (c *ListNotificationsRequestNotificationType) UnmarshalJSON(b []byte) error

func (ListNotificationsRequestNotificationType) Value added in v0.0.90

type ListNotificationsRequestNotificationTypeEnum added in v0.0.68

type ListNotificationsRequestNotificationTypeEnum struct {
	SMN ListNotificationsRequestNotificationType
	FUN ListNotificationsRequestNotificationType
}

func GetListNotificationsRequestNotificationTypeEnum added in v0.0.68

func GetListNotificationsRequestNotificationTypeEnum() ListNotificationsRequestNotificationTypeEnum

type ListNotificationsResponse added in v0.0.68

type ListNotificationsResponse struct {

	// 关键操作通知列表。
	Notifications  *[]NotificationsResponseBody `json:"notifications,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (ListNotificationsResponse) String added in v0.0.68

func (o ListNotificationsResponse) String() string

type ListQuotasRequest

type ListQuotasRequest struct {
}

Request Object

func (ListQuotasRequest) String

func (o ListQuotasRequest) String() string

type ListQuotasResponse

type ListQuotasResponse struct {

	// 本次查询追踪器列表返回的追踪器数组。
	Resources      *[]CtsQuota `json:"resources,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListQuotasResponse) String

func (o ListQuotasResponse) String() string

type ListTracesRequest

type ListTracesRequest struct {

	// 标识审计事件类型。 目前支持管理类事件(system)和数据类事件(data)。 默认值为\"system\"。
	TraceType ListTracesRequestTraceType `json:"trace_type"`

	// 标示查询事件列表中限定返回的事件条数。不传时默认10条,最大值200条。
	Limit *int32 `json:"limit,omitempty"`

	// 标识查询事件列表的起始时间戳(timestamp,为标准UTC时间,毫秒级,13位数字,不包括传入时间)默认为上一小时的时间戳。查询条件from与to配套使用。
	From *int64 `json:"from,omitempty"`

	// 取值为响应中中marker的值,用于标识查询事件的起始时间(自此条事件的记录时间起,向更早时间查询)。 可以与“from”、“to”结合使用。 最终的查询条件取两组时间条件的交集。
	Next *string `json:"next,omitempty"`

	// 标识查询事件列表的结束时间戳(timestamp,为标准UTC时间,毫秒级,13位数字,不包括传入时间)默认为当前时间戳。查询条件to与from配套使用。
	To *int64 `json:"to,omitempty"`

	// 当\"trace_type\"字段值为\"system\"时,该字段值默认为\"system\"。 当\"trace_type\"字段值为\"data\"时,该字段值可以传入数据类追踪器名称,达到筛选某个数据类追踪器下的数据事件目的。
	TrackerName *string `json:"tracker_name,omitempty"`

	// 标识查询事件列表对应的云服务类型。必须为已对接CTS的云服务的英文缩写,且服务类型一般为大写字母。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。 已对接的云服务列表参见《云审计服务用户指南》“支持的服务”章节。
	ServiceType *string `json:"service_type,omitempty"`

	// 标识特定用户名称,用以查询该用户下的所有事件。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。
	User *string `json:"user,omitempty"`

	// 标示查询事件列表对应的云服务资源ID。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。
	ResourceId *string `json:"resource_id,omitempty"`

	// 标示查询事件列表对应的的资源名称。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。 说明:该字段可能包含大写字母。
	ResourceName *string `json:"resource_name,omitempty"`

	// 标示查询事件列表对应的资源类型。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。
	ResourceType *string `json:"resource_type,omitempty"`

	// 标示某一条事件的事件ID。当传入这个查询条件时,其他查询条件自动不生效。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。
	TraceId *string `json:"trace_id,omitempty"`

	// 标示查询事件列表对应的事件名称。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。 说明:该字段可能包含大写字母。
	TraceName *string `json:"trace_name,omitempty"`

	// 标示查询事件列表对应的事件等级目前有三种:正常(normal), 警告(warning),事故(incident)。 当\"trace_type\"字段值为\"system\"时,该字段筛选有效\"。
	TraceRating *ListTracesRequestTraceRating `json:"trace_rating,omitempty"`
}

Request Object

func (ListTracesRequest) String

func (o ListTracesRequest) String() string

type ListTracesRequestTraceRating

type ListTracesRequestTraceRating struct {
	// contains filtered or unexported fields
}

func (ListTracesRequestTraceRating) MarshalJSON

func (c ListTracesRequestTraceRating) MarshalJSON() ([]byte, error)

func (*ListTracesRequestTraceRating) UnmarshalJSON

func (c *ListTracesRequestTraceRating) UnmarshalJSON(b []byte) error

func (ListTracesRequestTraceRating) Value added in v0.0.90

type ListTracesRequestTraceRatingEnum

type ListTracesRequestTraceRatingEnum struct {
	NORMAL   ListTracesRequestTraceRating
	WARNING  ListTracesRequestTraceRating
	INCIDENT ListTracesRequestTraceRating
}

func GetListTracesRequestTraceRatingEnum

func GetListTracesRequestTraceRatingEnum() ListTracesRequestTraceRatingEnum

type ListTracesRequestTraceType

type ListTracesRequestTraceType struct {
	// contains filtered or unexported fields
}

func (ListTracesRequestTraceType) MarshalJSON

func (c ListTracesRequestTraceType) MarshalJSON() ([]byte, error)

func (*ListTracesRequestTraceType) UnmarshalJSON

func (c *ListTracesRequestTraceType) UnmarshalJSON(b []byte) error

func (ListTracesRequestTraceType) Value added in v0.0.90

type ListTracesRequestTraceTypeEnum

type ListTracesRequestTraceTypeEnum struct {
	SYSTEM ListTracesRequestTraceType
	DATA   ListTracesRequestTraceType
}

func GetListTracesRequestTraceTypeEnum

func GetListTracesRequestTraceTypeEnum() ListTracesRequestTraceTypeEnum

type ListTracesResponse

type ListTracesResponse struct {

	// 本次查询事件列表返回事件数组。
	Traces *[]Traces `json:"traces,omitempty"`

	MetaData       *MetaData `json:"meta_data,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListTracesResponse) String

func (o ListTracesResponse) String() string

type ListTrackersRequest

type ListTrackersRequest struct {

	// 标示追踪器名称。 在不传入该字段的情况下,将查询租户所有的追踪器。
	TrackerName *string `json:"tracker_name,omitempty"`

	// 标识追踪器类型。 目前支持系统追踪器有管理类追踪器(system)和数据类追踪器(data)。
	TrackerType *ListTrackersRequestTrackerType `json:"tracker_type,omitempty"`
}

Request Object

func (ListTrackersRequest) String

func (o ListTrackersRequest) String() string

type ListTrackersRequestTrackerType

type ListTrackersRequestTrackerType struct {
	// contains filtered or unexported fields
}

func (ListTrackersRequestTrackerType) MarshalJSON

func (c ListTrackersRequestTrackerType) MarshalJSON() ([]byte, error)

func (*ListTrackersRequestTrackerType) UnmarshalJSON

func (c *ListTrackersRequestTrackerType) UnmarshalJSON(b []byte) error

func (ListTrackersRequestTrackerType) Value added in v0.0.90

type ListTrackersRequestTrackerTypeEnum

type ListTrackersRequestTrackerTypeEnum struct {
	SYSTEM ListTrackersRequestTrackerType
	DATA   ListTrackersRequestTrackerType
}

func GetListTrackersRequestTrackerTypeEnum

func GetListTrackersRequestTrackerTypeEnum() ListTrackersRequestTrackerTypeEnum

type ListTrackersResponse

type ListTrackersResponse struct {

	// 本次查询追踪器列表返回的追踪器数组。
	Trackers       *[]TrackerResponseBody `json:"trackers,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListTrackersResponse) String

func (o ListTrackersResponse) String() string

type Lts

type Lts struct {

	// 是否启用日志服务检索功能。
	IsLtsEnabled *bool `json:"is_lts_enabled,omitempty"`

	// 云审计服务在日志服务中创建的日志组名称。
	LogGroupName *string `json:"log_group_name,omitempty"`

	// 云审计服务在日志服务中创建的日志主题名称。
	LogTopicName *string `json:"log_topic_name,omitempty"`
}

云日志服务配置

func (Lts) String

func (o Lts) String() string

type MetaData

type MetaData struct {

	// 标识本次查询事件列表返回的事件记录的总条数。
	Count *int32 `json:"count,omitempty"`

	// 标识本次查询事件列表返回的最后一个事件ID。可以使用这个参数返回值作为分页请求参数next的值,如果marker返回为null,则表示当前请求条件下查询事件列表已经全部返回没有下一页。
	Marker *string `json:"marker,omitempty"`
}

标识为扩展字段,包括count(当前响应中事件记录的个数)和marker(本次查询返回事件列表最后一个事件ID)。

func (MetaData) String

func (o MetaData) String() string

type NotificationUsers added in v0.0.68

type NotificationUsers struct {

	// IAM用户组。
	UserGroup string `json:"user_group"`

	// IAM用户。
	UserList []string `json:"user_list"`
}

通知用户列表。

func (NotificationUsers) String added in v0.0.68

func (o NotificationUsers) String() string

type NotificationsResponseBody added in v0.0.68

type NotificationsResponseBody struct {

	// 标识关键操作名称。
	NotificationName *string `json:"notification_name,omitempty"`

	// 标识操作类型。 目前支持的操作类型有完整类型(complete)和自定义类型(customized)。 完整类型下,CTS发送通知的对象为已对接服务的所有事件。 自定义类型下,CTS发送通知的对象是在operations列表中指定的事件。
	OperationType *NotificationsResponseBodyOperationType `json:"operation_type,omitempty"`

	// 操作事件列表。
	Operations *[]Operations `json:"operations,omitempty"`

	// 通知用户列表,目前最多支持对10个用户组和50个用户发起的操作进行配置。
	NotifyUserList *[]NotificationUsers `json:"notify_user_list,omitempty"`

	// 标识关键操作通知状态,包括正常(enabled),停止(disabled)两种状态。
	Status *NotificationsResponseBodyStatus `json:"status,omitempty"`

	// 消息通知服务的topic_urn或者函数工作流的func_urn。 - 消息通知服务的topic_urn可以通过消息通知服务的查询主题列表API获取,示例:urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2。 - 函数工作流的func_urn可以通过函数工作流的获取函数列表API获取,示例:urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test。
	TopicId *string `json:"topic_id,omitempty"`

	// 关键操作通知的唯一标识。
	NotificationId *string `json:"notification_id,omitempty"`

	// 关键操作通知类型,根据topic_id区分为消息通知服务(smn)和函数工作流(fun)。
	NotificationType *NotificationsResponseBodyNotificationType `json:"notification_type,omitempty"`

	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 关键操作通知创建时间戳。
	CreateTime *int64 `json:"create_time,omitempty"`

	Filter *Filter `json:"filter,omitempty"`
}

func (NotificationsResponseBody) String added in v0.0.68

func (o NotificationsResponseBody) String() string

type NotificationsResponseBodyNotificationType added in v0.0.68

type NotificationsResponseBodyNotificationType struct {
	// contains filtered or unexported fields
}

func (NotificationsResponseBodyNotificationType) MarshalJSON added in v0.0.68

func (*NotificationsResponseBodyNotificationType) UnmarshalJSON added in v0.0.68

func (NotificationsResponseBodyNotificationType) Value added in v0.0.90

type NotificationsResponseBodyNotificationTypeEnum added in v0.0.68

type NotificationsResponseBodyNotificationTypeEnum struct {
	SMN NotificationsResponseBodyNotificationType
	FUN NotificationsResponseBodyNotificationType
}

func GetNotificationsResponseBodyNotificationTypeEnum added in v0.0.68

func GetNotificationsResponseBodyNotificationTypeEnum() NotificationsResponseBodyNotificationTypeEnum

type NotificationsResponseBodyOperationType added in v0.0.68

type NotificationsResponseBodyOperationType struct {
	// contains filtered or unexported fields
}

func (NotificationsResponseBodyOperationType) MarshalJSON added in v0.0.68

func (c NotificationsResponseBodyOperationType) MarshalJSON() ([]byte, error)

func (*NotificationsResponseBodyOperationType) UnmarshalJSON added in v0.0.68

func (c *NotificationsResponseBodyOperationType) UnmarshalJSON(b []byte) error

func (NotificationsResponseBodyOperationType) Value added in v0.0.90

type NotificationsResponseBodyOperationTypeEnum added in v0.0.68

type NotificationsResponseBodyOperationTypeEnum struct {
	CUSTOMIZED NotificationsResponseBodyOperationType
	COMPLETE   NotificationsResponseBodyOperationType
}

func GetNotificationsResponseBodyOperationTypeEnum added in v0.0.68

func GetNotificationsResponseBodyOperationTypeEnum() NotificationsResponseBodyOperationTypeEnum

type NotificationsResponseBodyStatus added in v0.0.68

type NotificationsResponseBodyStatus struct {
	// contains filtered or unexported fields
}

func (NotificationsResponseBodyStatus) MarshalJSON added in v0.0.68

func (c NotificationsResponseBodyStatus) MarshalJSON() ([]byte, error)

func (*NotificationsResponseBodyStatus) UnmarshalJSON added in v0.0.68

func (c *NotificationsResponseBodyStatus) UnmarshalJSON(b []byte) error

func (NotificationsResponseBodyStatus) Value added in v0.0.90

type NotificationsResponseBodyStatusEnum added in v0.0.68

type NotificationsResponseBodyStatusEnum struct {
	ENABLED  NotificationsResponseBodyStatus
	DISABLED NotificationsResponseBodyStatus
}

func GetNotificationsResponseBodyStatusEnum added in v0.0.68

func GetNotificationsResponseBodyStatusEnum() NotificationsResponseBodyStatusEnum

type ObsInfo

type ObsInfo struct {

	// 标识OBS桶名称。由数字或字母开头,支持小写字母、数字、“-”、“.”,长度为3~63个字符。
	BucketName *string `json:"bucket_name,omitempty"`

	// 标识需要存储于OBS的日志文件前缀,0-9,a-z,A-Z,'-','.','_'长度为0~64字符。
	FilePrefixName *string `json:"file_prefix_name,omitempty"`

	// 标识配置桶是否由追踪器自动创建。
	IsObsCreated *bool `json:"is_obs_created,omitempty"`

	// 标识配置桶是否已经授权给CTS服务账号。
	IsAuthorizedBucket *bool `json:"is_authorized_bucket,omitempty"`

	// 标识配置桶内对象存储周期。 当\"tracker_type\"参数值为\"data\"时该参数值有效。
	BucketLifecycle *int64 `json:"bucket_lifecycle,omitempty"`

	// 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。
	CompressType *ObsInfoCompressType `json:"compress_type,omitempty"`

	// 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。
	IsSortByService *bool `json:"is_sort_by_service,omitempty"`
}

转储桶信息。

func (ObsInfo) String

func (o ObsInfo) String() string

type ObsInfoCompressType added in v0.1.26

type ObsInfoCompressType struct {
	// contains filtered or unexported fields
}

func (ObsInfoCompressType) MarshalJSON added in v0.1.26

func (c ObsInfoCompressType) MarshalJSON() ([]byte, error)

func (*ObsInfoCompressType) UnmarshalJSON added in v0.1.26

func (c *ObsInfoCompressType) UnmarshalJSON(b []byte) error

func (ObsInfoCompressType) Value added in v0.1.26

func (c ObsInfoCompressType) Value() string

type ObsInfoCompressTypeEnum added in v0.1.26

type ObsInfoCompressTypeEnum struct {
	GZIP ObsInfoCompressType
	JSON ObsInfoCompressType
}

func GetObsInfoCompressTypeEnum added in v0.1.26

func GetObsInfoCompressTypeEnum() ObsInfoCompressTypeEnum

type Operations added in v0.0.68

type Operations struct {

	// 标识云服务类型。必须为已对接CTS的云服务的英文缩写,且服务类型一般为大写字母。 已对接的云服务列表参见《云审计服务用户指南》“支持的服务”章节。
	ServiceType string `json:"service_type"`

	// 标识资源类型。
	ResourceType string `json:"resource_type"`

	// 标识事件名称。
	TraceNames []string `json:"trace_names"`
}

操作事件列表,目前最多支持对100服务的1000个关键操作进行配置。

func (Operations) String added in v0.0.68

func (o Operations) String() string

type Traces

type Traces struct {

	// 标识事件对应的云服务资源ID。
	ResourceId *string `json:"resource_id,omitempty"`

	// 标识查询事件列表对应的事件名称。由0-9,a-z,A-Z,'-','.','_',组成,长度为1~64个字符,且以首字符必须为字母。
	TraceName *string `json:"trace_name,omitempty"`

	// 标识事件等级,目前有三种:正常(normal),警告(warning),事故(incident)。
	TraceRating *TracesTraceRating `json:"trace_rating,omitempty"`

	// 标识事件发生源头类型,管理类事件主要包括API调用(ApiCall),Console页面调用(ConsoleAction)和系统间调用(SystemAction)。 数据类事件主要包括ObsSDK,ObsAPI。
	TraceType *string `json:"trace_type,omitempty"`

	// 标识事件对应接口请求内容,即资源操作请求体。
	Request *string `json:"request,omitempty"`

	// 记录用户请求的响应,标识事件对应接口响应内容,即资源操作结果返回体。
	Response *string `json:"response,omitempty"`

	// 记录用户请求的响应,标识事件对应接口返回的HTTP状态码。
	Code *string `json:"code,omitempty"`

	// 标识事件对应的云服务接口版本。
	ApiVersion *string `json:"api_version,omitempty"`

	// 标识其他云服务为此条事件添加的备注信息。
	Message *string `json:"message,omitempty"`

	// 标识云审计服务记录本次事件的时间戳。
	RecordTime *int64 `json:"record_time,omitempty"`

	// 标识事件的ID,由系统生成的UUID。
	TraceId *string `json:"trace_id,omitempty"`

	// 标识事件产生的时间戳。
	Time *int64 `json:"time,omitempty"`

	User *UserInfo `json:"user,omitempty"`

	// 标识查询事件列表对应的云服务类型。必须为已对接CTS的云服务的英文缩写,且服务类型一般为大写字母。
	ServiceType *string `json:"service_type,omitempty"`

	// 查询事件列表对应的资源类型。
	ResourceType *string `json:"resource_type,omitempty"`

	// 标识触发事件的租户IP。
	SourceIp *string `json:"source_ip,omitempty"`

	// 标识事件对应的资源名称。
	ResourceName *string `json:"resource_name,omitempty"`

	// 记录本次请求的request id
	RequestId *string `json:"request_id,omitempty"`

	// 记录本次请求出错后,问题定位所需要的辅助信息。
	LocationInfo *string `json:"location_info,omitempty"`

	// 云资源的详情页面
	Endpoint *string `json:"endpoint,omitempty"`

	// 云资源的详情页面的访问链接(不含endpoint)
	ResourceUrl *string `json:"resource_url,omitempty"`
}

func (Traces) String

func (o Traces) String() string

type TracesTraceRating

type TracesTraceRating struct {
	// contains filtered or unexported fields
}

func (TracesTraceRating) MarshalJSON

func (c TracesTraceRating) MarshalJSON() ([]byte, error)

func (*TracesTraceRating) UnmarshalJSON

func (c *TracesTraceRating) UnmarshalJSON(b []byte) error

func (TracesTraceRating) Value added in v0.0.90

func (c TracesTraceRating) Value() string

type TracesTraceRatingEnum

type TracesTraceRatingEnum struct {
	NORMAL   TracesTraceRating
	WARNING  TracesTraceRating
	INCIDENT TracesTraceRating
}

func GetTracesTraceRatingEnum

func GetTracesTraceRatingEnum() TracesTraceRatingEnum

type TrackerObsInfo

type TrackerObsInfo struct {

	// 标识OBS桶名称。由数字或字母开头,支持小写字母、数字、“-”、“.”,长度为3~63个字符。
	BucketName *string `json:"bucket_name,omitempty"`

	// 标识需要存储于OBS的日志文件前缀,0-9,a-z,A-Z,'-','.','_'长度为0~64字符。
	FilePrefixName *string `json:"file_prefix_name,omitempty"`

	// 是否支持新建OBS桶。   值为“true”时,表示新创建OBS桶存储事件文件;   值为“false”时,选择已存在的OBS桶存储事件文件。
	IsObsCreated *bool `json:"is_obs_created,omitempty"`

	// 标识配置桶内对象存储周期。 当\"tracker_type\"参数值为\"data\"时该参数值有效。
	BucketLifecycle *int32 `json:"bucket_lifecycle,omitempty"`

	// 压缩类型。包括不压缩(json),压缩(gzip)两种状态。默认为gzip格式。
	CompressType *TrackerObsInfoCompressType `json:"compress_type,omitempty"`

	// 路径按云服务划分,打开后转储文件路径中将增加云服务名。默认为true。
	IsSortByService *bool `json:"is_sort_by_service,omitempty"`
}

转储桶信息。

func (TrackerObsInfo) String

func (o TrackerObsInfo) String() string

type TrackerObsInfoCompressType added in v0.1.26

type TrackerObsInfoCompressType struct {
	// contains filtered or unexported fields
}

func (TrackerObsInfoCompressType) MarshalJSON added in v0.1.26

func (c TrackerObsInfoCompressType) MarshalJSON() ([]byte, error)

func (*TrackerObsInfoCompressType) UnmarshalJSON added in v0.1.26

func (c *TrackerObsInfoCompressType) UnmarshalJSON(b []byte) error

func (TrackerObsInfoCompressType) Value added in v0.1.26

type TrackerObsInfoCompressTypeEnum added in v0.1.26

type TrackerObsInfoCompressTypeEnum struct {
	GZIP TrackerObsInfoCompressType
	JSON TrackerObsInfoCompressType
}

func GetTrackerObsInfoCompressTypeEnum added in v0.1.26

func GetTrackerObsInfoCompressTypeEnum() TrackerObsInfoCompressTypeEnum

type TrackerResponseBody

type TrackerResponseBody struct {

	// 追踪器唯一标识。
	Id *string `json:"id,omitempty"`

	// 追踪器创建时间戳。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 事件文件转储加密所采用的秘钥id(从KMS获取)。 当\"tracker_type\"参数值为\"system\"和\"is_support_trace_files_encryption\"参数值为“是”时,此参数为必选项。
	KmsId *string `json:"kms_id,omitempty"`

	// 是否打开事件文件校验。
	IsSupportValidate *bool `json:"is_support_validate,omitempty"`

	Lts *Lts `json:"lts,omitempty"`

	// 标识追踪器类型。 目前支持系统追踪器类型有管理类追踪器(system)和数据类追踪器(data)。
	TrackerType *TrackerResponseBodyTrackerType `json:"tracker_type,omitempty"`

	// 账号ID,参见《云审计服务API参考》“获取账号ID和项目ID”章节。
	DomainId *string `json:"domain_id,omitempty"`

	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 标识追踪器名称,当前版本默认为“system”。
	TrackerName *string `json:"tracker_name,omitempty"`

	// 标识追踪器状态,包括正常(enabled),停止(disabled)和异常(error)三种状态,状态为异常时需通过明细(detail)字段说明错误来源。
	Status *TrackerResponseBodyStatus `json:"status,omitempty"`

	// 该参数仅在追踪器状态异常时返回,用于标识追踪器异常的原因,包括桶策略异常(bucketPolicyError),桶不存在(noBucket)和欠费或冻结(arrears)三种原因。
	Detail *string `json:"detail,omitempty"`

	// 事件文件转储加密功能开关。 该参数必须与kms_id参数同时使用。 当前环境仅\"tracker_type\"参数值为\"system\"时支持该功能。
	IsSupportTraceFilesEncryption *bool `json:"is_support_trace_files_encryption,omitempty"`

	// LTS服务日志组的ID。
	GroupId *string `json:"group_id,omitempty"`

	// LTS服务日志流的ID。
	StreamId *string `json:"stream_id,omitempty"`

	ObsInfo *ObsInfo `json:"obs_info,omitempty"`

	DataBucket *DataBucketQuery `json:"data_bucket,omitempty"`
}

func (TrackerResponseBody) String

func (o TrackerResponseBody) String() string

type TrackerResponseBodyStatus

type TrackerResponseBodyStatus struct {
	// contains filtered or unexported fields
}

func (TrackerResponseBodyStatus) MarshalJSON

func (c TrackerResponseBodyStatus) MarshalJSON() ([]byte, error)

func (*TrackerResponseBodyStatus) UnmarshalJSON

func (c *TrackerResponseBodyStatus) UnmarshalJSON(b []byte) error

func (TrackerResponseBodyStatus) Value added in v0.0.90

type TrackerResponseBodyStatusEnum

type TrackerResponseBodyStatusEnum struct {
	ENABLED  TrackerResponseBodyStatus
	DISABLED TrackerResponseBodyStatus
}

func GetTrackerResponseBodyStatusEnum

func GetTrackerResponseBodyStatusEnum() TrackerResponseBodyStatusEnum

type TrackerResponseBodyTrackerType

type TrackerResponseBodyTrackerType struct {
	// contains filtered or unexported fields
}

func (TrackerResponseBodyTrackerType) MarshalJSON

func (c TrackerResponseBodyTrackerType) MarshalJSON() ([]byte, error)

func (*TrackerResponseBodyTrackerType) UnmarshalJSON

func (c *TrackerResponseBodyTrackerType) UnmarshalJSON(b []byte) error

func (TrackerResponseBodyTrackerType) Value added in v0.0.90

type TrackerResponseBodyTrackerTypeEnum

type TrackerResponseBodyTrackerTypeEnum struct {
	SYSTEM TrackerResponseBodyTrackerType
	DATA   TrackerResponseBodyTrackerType
}

func GetTrackerResponseBodyTrackerTypeEnum

func GetTrackerResponseBodyTrackerTypeEnum() TrackerResponseBodyTrackerTypeEnum

type UpdateNotificationRequest added in v0.0.68

type UpdateNotificationRequest struct {
	Body *UpdateNotificationRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateNotificationRequest) String added in v0.0.68

func (o UpdateNotificationRequest) String() string

type UpdateNotificationRequestBody added in v0.0.68

type UpdateNotificationRequestBody struct {

	// 标识关键操作名称。
	NotificationName string `json:"notification_name"`

	// 标识操作类型。 目前支持的操作类型有完整类型(complete)和自定义类型(customized)。 完整类型下,CTS发送通知的对象为已对接服务的所有事件。 自定义类型下,CTS发送通知的对象是在operations列表中指定的事件。
	OperationType UpdateNotificationRequestBodyOperationType `json:"operation_type"`

	// 操作事件列表。
	Operations *[]Operations `json:"operations,omitempty"`

	// 通知用户列表,目前最多支持对10个用户组和50个用户发起的操作进行配置。
	NotifyUserList *[]NotificationUsers `json:"notify_user_list,omitempty"`

	// 标识关键操作通知状态,包括正常(enabled),停止(disabled)两种状态。
	Status UpdateNotificationRequestBodyStatus `json:"status"`

	// 消息通知服务的topic_urn或者函数工作流的func_urn,当“status”字段为enabled时,该字段必填。 - 消息通知服务的topic_urn可以通过消息通知服务的查询主题列表API获取,示例:urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2。 - 函数工作流的func_urn可以通过函数工作流的获取函数列表API获取,示例:urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test。
	TopicId *string `json:"topic_id,omitempty"`

	// 关键操作通知id。
	NotificationId string `json:"notification_id"`

	Filter *Filter `json:"filter,omitempty"`
}

修改关键操作通知规则的请求体。

func (UpdateNotificationRequestBody) String added in v0.0.68

type UpdateNotificationRequestBodyOperationType added in v0.0.68

type UpdateNotificationRequestBodyOperationType struct {
	// contains filtered or unexported fields
}

func (UpdateNotificationRequestBodyOperationType) MarshalJSON added in v0.0.68

func (*UpdateNotificationRequestBodyOperationType) UnmarshalJSON added in v0.0.68

func (UpdateNotificationRequestBodyOperationType) Value added in v0.0.90

type UpdateNotificationRequestBodyOperationTypeEnum added in v0.0.68

type UpdateNotificationRequestBodyOperationTypeEnum struct {
	CUSTOMIZED UpdateNotificationRequestBodyOperationType
	COMPLETE   UpdateNotificationRequestBodyOperationType
}

func GetUpdateNotificationRequestBodyOperationTypeEnum added in v0.0.68

func GetUpdateNotificationRequestBodyOperationTypeEnum() UpdateNotificationRequestBodyOperationTypeEnum

type UpdateNotificationRequestBodyStatus added in v0.0.68

type UpdateNotificationRequestBodyStatus struct {
	// contains filtered or unexported fields
}

func (UpdateNotificationRequestBodyStatus) MarshalJSON added in v0.0.68

func (c UpdateNotificationRequestBodyStatus) MarshalJSON() ([]byte, error)

func (*UpdateNotificationRequestBodyStatus) UnmarshalJSON added in v0.0.68

func (c *UpdateNotificationRequestBodyStatus) UnmarshalJSON(b []byte) error

func (UpdateNotificationRequestBodyStatus) Value added in v0.0.90

type UpdateNotificationRequestBodyStatusEnum added in v0.0.68

type UpdateNotificationRequestBodyStatusEnum struct {
	ENABLED  UpdateNotificationRequestBodyStatus
	DISABLED UpdateNotificationRequestBodyStatus
}

func GetUpdateNotificationRequestBodyStatusEnum added in v0.0.68

func GetUpdateNotificationRequestBodyStatusEnum() UpdateNotificationRequestBodyStatusEnum

type UpdateNotificationResponse added in v0.0.68

type UpdateNotificationResponse struct {

	// 标识关键操作名称。
	NotificationName *string `json:"notification_name,omitempty"`

	// 标识操作类型。 目前支持的操作类型有完整类型(complete)和自定义类型(customized)。 完整类型下,CTS发送通知的对象为已对接服务的所有事件。 自定义类型下,CTS发送通知的对象是在operations列表中指定的事件。
	OperationType *UpdateNotificationResponseOperationType `json:"operation_type,omitempty"`

	// 操作事件列表。
	Operations *[]Operations `json:"operations,omitempty"`

	// 通知用户列表,目前最多支持对10个用户组和50个用户发起的操作进行配置。
	NotifyUserList *[]NotificationUsers `json:"notify_user_list,omitempty"`

	// 标识关键操作通知状态,包括正常(enabled),停止(disabled)两种状态。
	Status *UpdateNotificationResponseStatus `json:"status,omitempty"`

	// 消息通知服务的topic_urn或者函数工作流的func_urn。 - 消息通知服务的topic_urn可以通过消息通知服务的查询主题列表API获取,示例:urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2。 - 函数工作流的func_urn可以通过函数工作流的获取函数列表API获取,示例:urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test。
	TopicId *string `json:"topic_id,omitempty"`

	// 关键操作通知的唯一标识。
	NotificationId *string `json:"notification_id,omitempty"`

	// 关键操作通知类型,根据topic_id区分为消息通知服务(smn)和函数工作流(fun)。
	NotificationType *UpdateNotificationResponseNotificationType `json:"notification_type,omitempty"`

	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 关键操作通知创建时间戳。
	CreateTime *int64 `json:"create_time,omitempty"`

	Filter         *Filter `json:"filter,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateNotificationResponse) String added in v0.0.68

type UpdateNotificationResponseNotificationType added in v0.0.68

type UpdateNotificationResponseNotificationType struct {
	// contains filtered or unexported fields
}

func (UpdateNotificationResponseNotificationType) MarshalJSON added in v0.0.68

func (*UpdateNotificationResponseNotificationType) UnmarshalJSON added in v0.0.68

func (UpdateNotificationResponseNotificationType) Value added in v0.0.90

type UpdateNotificationResponseNotificationTypeEnum added in v0.0.68

type UpdateNotificationResponseNotificationTypeEnum struct {
	SMN UpdateNotificationResponseNotificationType
	FUN UpdateNotificationResponseNotificationType
}

func GetUpdateNotificationResponseNotificationTypeEnum added in v0.0.68

func GetUpdateNotificationResponseNotificationTypeEnum() UpdateNotificationResponseNotificationTypeEnum

type UpdateNotificationResponseOperationType added in v0.0.68

type UpdateNotificationResponseOperationType struct {
	// contains filtered or unexported fields
}

func (UpdateNotificationResponseOperationType) MarshalJSON added in v0.0.68

func (c UpdateNotificationResponseOperationType) MarshalJSON() ([]byte, error)

func (*UpdateNotificationResponseOperationType) UnmarshalJSON added in v0.0.68

func (c *UpdateNotificationResponseOperationType) UnmarshalJSON(b []byte) error

func (UpdateNotificationResponseOperationType) Value added in v0.0.90

type UpdateNotificationResponseOperationTypeEnum added in v0.0.68

type UpdateNotificationResponseOperationTypeEnum struct {
	CUSTOMIZED UpdateNotificationResponseOperationType
	COMPLETE   UpdateNotificationResponseOperationType
}

func GetUpdateNotificationResponseOperationTypeEnum added in v0.0.68

func GetUpdateNotificationResponseOperationTypeEnum() UpdateNotificationResponseOperationTypeEnum

type UpdateNotificationResponseStatus added in v0.0.68

type UpdateNotificationResponseStatus struct {
	// contains filtered or unexported fields
}

func (UpdateNotificationResponseStatus) MarshalJSON added in v0.0.68

func (c UpdateNotificationResponseStatus) MarshalJSON() ([]byte, error)

func (*UpdateNotificationResponseStatus) UnmarshalJSON added in v0.0.68

func (c *UpdateNotificationResponseStatus) UnmarshalJSON(b []byte) error

func (UpdateNotificationResponseStatus) Value added in v0.0.90

type UpdateNotificationResponseStatusEnum added in v0.0.68

type UpdateNotificationResponseStatusEnum struct {
	ENABLED  UpdateNotificationResponseStatus
	DISABLED UpdateNotificationResponseStatus
}

func GetUpdateNotificationResponseStatusEnum added in v0.0.68

func GetUpdateNotificationResponseStatusEnum() UpdateNotificationResponseStatusEnum

type UpdateTrackerRequest

type UpdateTrackerRequest struct {
	Body *UpdateTrackerRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTrackerRequest) String

func (o UpdateTrackerRequest) String() string

type UpdateTrackerRequestBody

type UpdateTrackerRequestBody struct {

	// 标识追踪器类型。 目前支持系统追踪器类型有管理类追踪器(system)和数据类追踪器(data)。 数据类追踪器和管理类追踪器共同参数有:is_lts_enabled, obs_info; 管理类追踪器参数:is_support_trace_files_encryption, kms_id, is_support_validate, is_support_validate; 数据类追踪器参数:tracker_name, data_bucket。
	TrackerType UpdateTrackerRequestBodyTrackerType `json:"tracker_type"`

	// 标识追踪器名称。 当\"tracker_type\"参数值为\"system\"时该参数为默认值\"system\"。 当\"tracker_type\"参数值为\"data\"时该参数需要指定追踪器名称\"。
	TrackerName string `json:"tracker_name"`

	// 标识追踪器状态,该接口中可修改的状态包括正常(enabled)和停止(disabled)。如果选择修改状态为停止,则修改成功后追踪器停止记录事件。
	Status *UpdateTrackerRequestBodyStatus `json:"status,omitempty"`

	// 是否打开事件分析。
	IsLtsEnabled *bool `json:"is_lts_enabled,omitempty"`

	ObsInfo *TrackerObsInfo `json:"obs_info,omitempty"`

	// 事件文件转储加密功能开关。 当\"tracker_type\"参数值为\"system\"时该参数值有效。 该参数必须与kms_id参数同时使用。
	IsSupportTraceFilesEncryption *bool `json:"is_support_trace_files_encryption,omitempty"`

	// 事件文件转储加密所采用的秘钥id(从KMS获取)。 当\"tracker_type\"参数值为\"system\"时该参数值有效。 当\"is_support_trace_files_encryption\"参数值为“是”时,此参数为必选项。
	KmsId *string `json:"kms_id,omitempty"`

	// 事件文件转储时是否打开事件文件校验。 当\"tracker_type\"参数值为\"system\"时该参数值有效。
	IsSupportValidate *bool `json:"is_support_validate,omitempty"`

	DataBucket *DataBucket `json:"data_bucket,omitempty"`
}

func (UpdateTrackerRequestBody) String

func (o UpdateTrackerRequestBody) String() string

type UpdateTrackerRequestBodyStatus

type UpdateTrackerRequestBodyStatus struct {
	// contains filtered or unexported fields
}

func (UpdateTrackerRequestBodyStatus) MarshalJSON

func (c UpdateTrackerRequestBodyStatus) MarshalJSON() ([]byte, error)

func (*UpdateTrackerRequestBodyStatus) UnmarshalJSON

func (c *UpdateTrackerRequestBodyStatus) UnmarshalJSON(b []byte) error

func (UpdateTrackerRequestBodyStatus) Value added in v0.0.90

type UpdateTrackerRequestBodyStatusEnum

type UpdateTrackerRequestBodyStatusEnum struct {
	ENABLED  UpdateTrackerRequestBodyStatus
	DISABLED UpdateTrackerRequestBodyStatus
}

func GetUpdateTrackerRequestBodyStatusEnum

func GetUpdateTrackerRequestBodyStatusEnum() UpdateTrackerRequestBodyStatusEnum

type UpdateTrackerRequestBodyTrackerType

type UpdateTrackerRequestBodyTrackerType struct {
	// contains filtered or unexported fields
}

func (UpdateTrackerRequestBodyTrackerType) MarshalJSON

func (c UpdateTrackerRequestBodyTrackerType) MarshalJSON() ([]byte, error)

func (*UpdateTrackerRequestBodyTrackerType) UnmarshalJSON

func (c *UpdateTrackerRequestBodyTrackerType) UnmarshalJSON(b []byte) error

func (UpdateTrackerRequestBodyTrackerType) Value added in v0.0.90

type UpdateTrackerRequestBodyTrackerTypeEnum

type UpdateTrackerRequestBodyTrackerTypeEnum struct {
	SYSTEM UpdateTrackerRequestBodyTrackerType
	DATA   UpdateTrackerRequestBodyTrackerType
}

func GetUpdateTrackerRequestBodyTrackerTypeEnum

func GetUpdateTrackerRequestBodyTrackerTypeEnum() UpdateTrackerRequestBodyTrackerTypeEnum

type UpdateTrackerResponse

type UpdateTrackerResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateTrackerResponse) String

func (o UpdateTrackerResponse) String() string

type UserInfo

type UserInfo struct {

	// 账号ID,参见《云审计服务API参考》“获取账号ID和项目ID”章节。
	Id *string `json:"id,omitempty"`

	// 账号名称。
	Name *string `json:"name,omitempty"`

	Domain *BaseUser `json:"domain,omitempty"`
}

用户信息。

func (UserInfo) String

func (o UserInfo) String() string

Jump to

Keyboard shortcuts

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