models

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectResource

type CollectResource struct {

	/* 采集资源ID (Optional) */
	CollectResourceId string `json:"collectResourceId"`

	/* 采集资源所属私有网络(VPC)的ID (Optional) */
	VpcId string `json:"vpcId"`

	/* 采集资源所属子网的ID (Optional) */
	SubnetId string `json:"subnetId"`

	/* 采集资源类型
	VM: 云主机
	ENI: 弹性网卡
	 (Optional) */
	CollectResourceType string `json:"collectResourceType"`

	/* 采集资源添加时间 (Optional) */
	AddedTime string `json:"addedTime"`
}

type CollectResourceSpec

type CollectResourceSpec struct {

	/* 采集资源的类型,支持取值VM、ENI
	flowLogType = PORT时支持取值:VM、ENI
	*/
	CollectResourceType string `json:"collectResourceType"`

	/* 采集资源的ID,如i-xxxxx、port-xxxxx  */
	CollectResourceId string `json:"collectResourceId"`
}

type CollectResources

type CollectResources struct {

	/* 采集资源列表  */
	CollectResources []CollectResourceSpec `json:"collectResources"`
}

type Filter

type Filter struct {

	/* 过滤条件的名称  */
	Name string `json:"name"`

	/* 过滤条件的操作符,默认eq (Optional) */
	Operator *string `json:"operator"`

	/* 过滤条件的值  */
	Values []string `json:"values"`
}

type FlowLog

type FlowLog struct {

	/* 流日志ID (Optional) */
	FlowLogId string `json:"flowLogId"`

	/* 流日志名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
	FlowLogName string `json:"flowLogName"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description string `json:"description"`

	/* 流日志类型
	PORT:采集资源包括云主机、弹性网卡
	 (Optional) */
	FlowLogType string `json:"flowLogType"`

	/* 流日志的状态
	RUNNING:采集中
	STOPPED:已停止采集
	 (Optional) */
	FlowLogStatus string `json:"flowLogStatus"`

	/* 采集资源列表 (Optional) */
	CollectResources []CollectResource `json:"collectResources"`

	/* 采集流量类型
	ALL:记录指定资源的全部流量。
	ACCEPT:记录指定资源被安全组、网络ACL均接受的流量。
	REJECT:记录指定资源被安全组或网络ACL拒绝的流量。
	 (Optional) */
	CollectTrafficType string `json:"collectTrafficType"`

	/* 流日志采集时间间隔。单位:分钟。取值:1、5、10 (Optional) */
	CollectInterval int `json:"collectInterval"`

	/* 流日志的存储服务所在地域 (Optional) */
	StorageRegionId string `json:"storageRegionId"`

	/* 流日志的存储服务类型
	LOG:日志服务
	 (Optional) */
	StorageType string `json:"storageType"`

	/* 流日志数据存储服务ID (Optional) */
	StorageId string `json:"storageId"`

	/* 流日志创建时间 (Optional) */
	CreatedTime string `json:"createdTime"`
}

type FlowLogSpec

type FlowLogSpec struct {

	/* 流日志名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符  */
	FlowLogName string `json:"flowLogName"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description string `json:"description"`

	/* 流日志类型
	PORT:采集资源可为云主机、弹性网卡
	*/
	FlowLogType string `json:"flowLogType"`

	/* 采集资源列表 (Optional) */
	CollectResources []CollectResourceSpec `json:"collectResources"`

	/* 采集流量类型
	ALL:记录指定资源的全部流量
	ACCEPT:记录指定资源被安全组、网络ACL均接受的流量
	REJECT:记录指定资源被安全组或网络ACL拒绝的流量
	 (Optional) */
	CollectTrafficType string `json:"collectTrafficType"`

	/* 流日志采集时间间隔。单位:分钟。取值:1、5、10 (Optional) */
	CollectInterval int `json:"collectInterval"`

	/* 流日志的存储服务类型,支持存储到日志服务,日志服务取值:LOG (Optional) */
	StorageType string `json:"storageType"`

	/* 流日志的存储服务所在地域,如日志服务所属地域,如cn-north-1  */
	StorageRegionId string `json:"storageRegionId"`

	/* 流日志的存储服务ID
	若storageType = LOG时,值取日志主题ID,如logtopic-xxxx
	当flowLogType = PORT时,值需取 templateUID = eniflowlogs 的日志主题ID
	*/
	StorageId string `json:"storageId"`
}

type ModifyFlowLogSpec

type ModifyFlowLogSpec struct {

	/* 流日志名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
	FlowLogName string `json:"flowLogName"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description string `json:"description"`

	/* 流日志采集时间间隔。单位:分钟。取值:1、5、10 (Optional) */
	CollectInterval int `json:"collectInterval"`
}

type ModifyQuotaSpec

type ModifyQuotaSpec struct {

	/* 资源类型,取值范围:flowLog、flowLogResource  */
	Type string `json:"type"`

	/* type为flowLog不设置
	flowLogResource设置为flowLogId
	 (Optional) */
	ParentResourceId string `json:"parentResourceId"`

	/* 配额大小  */
	MaxLimit int `json:"maxLimit"`
}

type Quota

type Quota struct {

	/* 资源类型,取值范围:flowLog、flowLogResource (Optional) */
	Type string `json:"type"`

	/* type为flowLog不设置,
	flowLogResource设置为flowLogId
	 (Optional) */
	ParentResourceId string `json:"parentResourceId"`

	/* 配额大小 (Optional) */
	MaxLimit int `json:"maxLimit"`

	/* 已存在的资源数量 (Optional) */
	Count int `json:"count"`
}

type RemoveCollectResourceSpec

type RemoveCollectResourceSpec struct {

	/* 采集资源ID列表  */
	CollectResourceIds []string `json:"collectResourceIds"`
}

Jump to

Keyboard shortcuts

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