Documentation
¶
Overview ¶
* Zenlayer.com Inc. * Copyright (c) 2014-2022 All Rights Reserved.
Index ¶
- Constants
- type AiGatewayInfo
- type AiGatewayModel
- type AiModel
- type Client
- func NewClient(config *common.Config, secretKeyId, secretKeyPassword string) (client *Client, err error)
- func NewClientWithSecretKey(secretKeyId, secretKeyPassword string) (client *Client, err error)
- func NewClientWithToken(token string) (client *Client, err error)
- func NewClientWithTokenAndConfig(config *common.Config, token string) (client *Client, err error)
- func (c *Client) CreateAiGateway(request *CreateAiGatewayRequest) (response *CreateAiGatewayResponse, err error)
- func (c *Client) DeleteAiGateway(request *DeleteAiGatewayRequest) (response *DeleteAiGatewayResponse, err error)
- func (c *Client) DescribeAiGatewayExpireTime(request *DescribeAiGatewayExpireTimeRequest) (response *DescribeAiGatewayExpireTimeResponse, err error)
- func (c *Client) DescribeAiGatewayIpAcl(request *DescribeAiGatewayIpAclRequest) (response *DescribeAiGatewayIpAclResponse, err error)
- func (c *Client) DescribeAiGatewayModels(request *DescribeAiGatewayModelsRequest) (response *DescribeAiGatewayModelsResponse, err error)
- func (c *Client) DescribeAiGatewayTokenLimit(request *DescribeAiGatewayTokenLimitRequest) (response *DescribeAiGatewayTokenLimitResponse, err error)
- func (c *Client) DescribeAiGateways(request *DescribeAiGatewaysRequest) (response *DescribeAiGatewaysResponse, err error)
- func (c *Client) DescribeAiModelDailyCacheHitRate(request *DescribeAiModelDailyCacheHitRateRequest) (response *DescribeAiModelDailyCacheHitRateResponse, err error)
- func (c *Client) DescribeAiModelDailyCost(request *DescribeAiModelDailyCostRequest) (response *DescribeAiModelDailyCostResponse, err error)
- func (c *Client) DescribeAiModels(request *DescribeAiModelsRequest) (response *DescribeAiModelsResponse, err error)
- func (c *Client) DescribeAiMonthlyTotalCost(request *DescribeAiMonthlyTotalCostRequest) (response *DescribeAiMonthlyTotalCostResponse, err error)
- func (c *Client) DescribeAiUsageData(request *DescribeAiUsageDataRequest) (response *DescribeAiUsageDataResponse, err error)
- func (c *Client) DescribeAiUsageDetailData(request *DescribeAiUsageDetailDataRequest) (response *DescribeAiUsageDetailDataResponse, err error)
- func (c *Client) ModifyAiGatewayExpireTime(request *ModifyAiGatewayExpireTimeRequest) (response *ModifyAiGatewayExpireTimeResponse, err error)
- func (c *Client) ModifyAiGatewayIpAcl(request *ModifyAiGatewayIpAclRequest) (response *ModifyAiGatewayIpAclResponse, err error)
- func (c *Client) ModifyAiGatewayModels(request *ModifyAiGatewayModelsRequest) (response *ModifyAiGatewayModelsResponse, err error)
- func (c *Client) ModifyAiGatewayName(request *ModifyAiGatewayNameRequest) (response *ModifyAiGatewayNameResponse, err error)
- func (c *Client) ModifyAiGatewayTokenLimit(request *ModifyAiGatewayTokenLimitRequest) (response *ModifyAiGatewayTokenLimitResponse, err error)
- func (c *Client) StartAiGateway(request *StartAiGatewayRequest) (response *StartAiGatewayResponse, err error)
- func (c *Client) StopAiGateway(request *StopAiGatewayRequest) (response *StopAiGatewayResponse, err error)
- type CreateAiGatewayRequest
- type CreateAiGatewayResponse
- type CreateAiGatewayResponseParams
- type DeleteAiGatewayRequest
- type DeleteAiGatewayResponse
- type DescribeAiGatewayExpireTimeRequest
- type DescribeAiGatewayExpireTimeResponse
- type DescribeAiGatewayExpireTimeResponseParams
- type DescribeAiGatewayIpAclRequest
- type DescribeAiGatewayIpAclResponse
- type DescribeAiGatewayIpAclResponseParams
- type DescribeAiGatewayModelsRequest
- type DescribeAiGatewayModelsResponse
- type DescribeAiGatewayModelsResponseParams
- type DescribeAiGatewayTokenLimitRequest
- type DescribeAiGatewayTokenLimitResponse
- type DescribeAiGatewayTokenLimitResponseParams
- type DescribeAiGatewaysRequest
- type DescribeAiGatewaysResponse
- type DescribeAiGatewaysResponseParams
- type DescribeAiModelDailyCacheHitRateRequest
- type DescribeAiModelDailyCacheHitRateResponse
- type DescribeAiModelDailyCacheHitRateResponseParams
- type DescribeAiModelDailyCostRequest
- type DescribeAiModelDailyCostResponse
- type DescribeAiModelDailyCostResponseParams
- type DescribeAiModelsRequest
- type DescribeAiModelsResponse
- type DescribeAiModelsResponseParams
- type DescribeAiMonthlyTotalCostRequest
- type DescribeAiMonthlyTotalCostResponse
- type DescribeAiMonthlyTotalCostResponseParams
- type DescribeAiUsageDataRequest
- type DescribeAiUsageDataResponse
- type DescribeAiUsageDataResponseParams
- type DescribeAiUsageDetailDataRequest
- type DescribeAiUsageDetailDataResponse
- type DescribeAiUsageDetailDataResponseParams
- type ModelCacheHitSeries
- type ModelCostSeries
- type ModelValueItem
- type ModifyAiGatewayExpireTimeRequest
- type ModifyAiGatewayExpireTimeResponse
- type ModifyAiGatewayIpAclRequest
- type ModifyAiGatewayIpAclResponse
- type ModifyAiGatewayModelsRequest
- type ModifyAiGatewayModelsResponse
- type ModifyAiGatewayNameRequest
- type ModifyAiGatewayNameResponse
- type ModifyAiGatewayTokenLimitRequest
- type ModifyAiGatewayTokenLimitResponse
- type StartAiGatewayRequest
- type StartAiGatewayResponse
- type StopAiGatewayRequest
- type StopAiGatewayResponse
- type Tag
- type TagAssociation
- type Tags
- type UsageData
- type UsageDataPoint
Constants ¶
const ( APIVersion = "2026-04-14" SERVICE = "aigw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AiGatewayInfo ¶
type AiGatewayInfo struct {
// GatewayUuid AI网关唯一ID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// GatewayName AI网关显示名称。
GatewayName *string `json:"gatewayName,omitempty"`
// Enabled 是否启用。
Enabled *bool `json:"enabled,omitempty"`
// CreatedAt 创建时间。
CreatedAt *string `json:"createdAt,omitempty"`
// UpdatedAt 更新时间。
UpdatedAt *string `json:"updatedAt,omitempty"`
// ResourceGroupId AI网关所属的资源组ID。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// AccessLimit 配额。
AccessLimit *int `json:"accessLimit,omitempty"`
// ExpireType 过期时间类型。
ExpireType *string `json:"expireType,omitempty"`
// ExpireTime 过期时间。
ExpireTime *string `json:"expireTime,omitempty"`
// ModelAccess 模型访问限制。
ModelAccess *string `json:"modelAccess,omitempty"`
// Tags AI网关关联的标签。
Tags *Tags `json:"tags,omitempty"`
}
AiGatewayInfo 描述AI网关实例的信息。包括过期策略,状态,模型限制等。
type AiGatewayModel ¶
type AiGatewayModel struct {
// ModelUuid 模型uuid。
ModelUuid *string `json:"modelUuid,omitempty"`
// ModelName 模型名称。
ModelName *string `json:"modelName,omitempty"`
}
AiGatewayModel 描述AI网关关联模型的信息。包模型uuid和模型名称。
type AiModel ¶
type AiModel struct {
// ModelUuid 模型uuid。
ModelUuid *string `json:"modelUuid,omitempty"`
// ModelName 模型名称。
ModelName *string `json:"modelName,omitempty"`
// ModelType 模型类型。
ModelType *string `json:"modelType,omitempty"`
// ProviderName 厂商名称。
ProviderName *string `json:"providerName,omitempty"`
}
AiModel 描述AI网关模型的信息。包模型uuid、模型名称、模型类型等。
type Client ¶
func NewClientWithSecretKey ¶
func NewClientWithToken ¶ added in v0.2.37
func NewClientWithTokenAndConfig ¶ added in v0.2.37
func (*Client) CreateAiGateway ¶
func (c *Client) CreateAiGateway(request *CreateAiGatewayRequest) (response *CreateAiGatewayResponse, err error)
CreateAiGateway 创建AI网关
func (*Client) DeleteAiGateway ¶
func (c *Client) DeleteAiGateway(request *DeleteAiGatewayRequest) (response *DeleteAiGatewayResponse, err error)
DeleteAiGateway 删除AI网关
func (*Client) DescribeAiGatewayExpireTime ¶
func (c *Client) DescribeAiGatewayExpireTime(request *DescribeAiGatewayExpireTimeRequest) (response *DescribeAiGatewayExpireTimeResponse, err error)
DescribeAiGatewayExpireTime 查询AI网关过期时间
func (*Client) DescribeAiGatewayIpAcl ¶
func (c *Client) DescribeAiGatewayIpAcl(request *DescribeAiGatewayIpAclRequest) (response *DescribeAiGatewayIpAclResponse, err error)
DescribeAiGatewayIpAcl 查询AI网关IP访问控制
func (*Client) DescribeAiGatewayModels ¶
func (c *Client) DescribeAiGatewayModels(request *DescribeAiGatewayModelsRequest) (response *DescribeAiGatewayModelsResponse, err error)
DescribeAiGatewayModels 查询AI网关模型
func (*Client) DescribeAiGatewayTokenLimit ¶
func (c *Client) DescribeAiGatewayTokenLimit(request *DescribeAiGatewayTokenLimitRequest) (response *DescribeAiGatewayTokenLimitResponse, err error)
DescribeAiGatewayTokenLimit 查询AI网关Token限制
func (*Client) DescribeAiGateways ¶
func (c *Client) DescribeAiGateways(request *DescribeAiGatewaysRequest) (response *DescribeAiGatewaysResponse, err error)
DescribeAiGateways 分页查询ai网关列表
func (*Client) DescribeAiModelDailyCacheHitRate ¶
func (c *Client) DescribeAiModelDailyCacheHitRate(request *DescribeAiModelDailyCacheHitRateRequest) (response *DescribeAiModelDailyCacheHitRateResponse, err error)
DescribeAiModelDailyCacheHitRate 查询AI网关日模型缓存命中率
func (*Client) DescribeAiModelDailyCost ¶
func (c *Client) DescribeAiModelDailyCost(request *DescribeAiModelDailyCostRequest) (response *DescribeAiModelDailyCostResponse, err error)
DescribeAiModelDailyCost 查询AI网关月模型日费用
func (*Client) DescribeAiModels ¶
func (c *Client) DescribeAiModels(request *DescribeAiModelsRequest) (response *DescribeAiModelsResponse, err error)
DescribeAiModels 查询ai模型列表
func (*Client) DescribeAiMonthlyTotalCost ¶
func (c *Client) DescribeAiMonthlyTotalCost(request *DescribeAiMonthlyTotalCostRequest) (response *DescribeAiMonthlyTotalCostResponse, err error)
DescribeAiMonthlyTotalCost 查询AI网关月总费用
func (*Client) DescribeAiUsageData ¶
func (c *Client) DescribeAiUsageData(request *DescribeAiUsageDataRequest) (response *DescribeAiUsageDataResponse, err error)
DescribeAiUsageData 查询AI网关用量统计数据
func (*Client) DescribeAiUsageDetailData ¶
func (c *Client) DescribeAiUsageDetailData(request *DescribeAiUsageDetailDataRequest) (response *DescribeAiUsageDetailDataResponse, err error)
DescribeAiUsageDetailData 查询AI网关用量明细数据
func (*Client) ModifyAiGatewayExpireTime ¶
func (c *Client) ModifyAiGatewayExpireTime(request *ModifyAiGatewayExpireTimeRequest) (response *ModifyAiGatewayExpireTimeResponse, err error)
ModifyAiGatewayExpireTime 修改AI网关过期时间
func (*Client) ModifyAiGatewayIpAcl ¶
func (c *Client) ModifyAiGatewayIpAcl(request *ModifyAiGatewayIpAclRequest) (response *ModifyAiGatewayIpAclResponse, err error)
ModifyAiGatewayIpAcl 修改AI网关IP访问控制
func (*Client) ModifyAiGatewayModels ¶
func (c *Client) ModifyAiGatewayModels(request *ModifyAiGatewayModelsRequest) (response *ModifyAiGatewayModelsResponse, err error)
ModifyAiGatewayModels 修改AI网关模型
func (*Client) ModifyAiGatewayName ¶
func (c *Client) ModifyAiGatewayName(request *ModifyAiGatewayNameRequest) (response *ModifyAiGatewayNameResponse, err error)
ModifyAiGatewayName 修改AI网关名称
func (*Client) ModifyAiGatewayTokenLimit ¶
func (c *Client) ModifyAiGatewayTokenLimit(request *ModifyAiGatewayTokenLimitRequest) (response *ModifyAiGatewayTokenLimitResponse, err error)
ModifyAiGatewayTokenLimit 修改AI网关Token限制
func (*Client) StartAiGateway ¶
func (c *Client) StartAiGateway(request *StartAiGatewayRequest) (response *StartAiGatewayResponse, err error)
StartAiGateway 启动AI网关
func (*Client) StopAiGateway ¶
func (c *Client) StopAiGateway(request *StopAiGatewayRequest) (response *StopAiGatewayResponse, err error)
StopAiGateway 停止AI网关
type CreateAiGatewayRequest ¶
type CreateAiGatewayRequest struct {
*common.BaseRequest
// ModelUuids 需要关联的模型uuid列表。
// 当modelAccess为`LIMITED`时必填。
ModelUuids []string `json:"modelUuids,omitempty"`
// GatewayName AI网关名称。
// 范围2到63个字符。
// 仅支持输入字母、数字、-和英文句点(.)。
// 且必须以数字或字母开头和结尾。
GatewayName *string `json:"gatewayName,omitempty"`
// TokenLimit token配额。
TokenLimit *int `json:"tokenLimit,omitempty"`
// ExpireType token过期策略类型。
// 可选范围:LONG_LIVED、CUSTOM。
ExpireType *string `json:"expireType,omitempty"`
// ExpireTime token过期时间。
// 当expireType为`CUSTOM`时必填。
ExpireTime *string `json:"expireTime,omitempty"`
// ResourceGroupId 创建后AI网关所在的资源组ID,如不指定则放入默认资源组。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// ModelAccess 模型访问权限。
// 可选范围:UNLIMITED、LIMITED。
ModelAccess *string `json:"modelAccess,omitempty"`
// Tags 创建AI网关时关联的标签。
// 注意:·关联`标签键`不能重复。
Tags *TagAssociation `json:"tags,omitempty"`
}
CreateAiGatewayRequest
func NewCreateAiGatewayRequest ¶
func NewCreateAiGatewayRequest() (request *CreateAiGatewayRequest)
type CreateAiGatewayResponse ¶
type CreateAiGatewayResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *CreateAiGatewayResponseParams `json:"response,omitempty"`
}
func NewCreateAiGatewayResponse ¶
func NewCreateAiGatewayResponse() (response *CreateAiGatewayResponse)
type CreateAiGatewayResponseParams ¶
type CreateAiGatewayResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// GatewayUuid AI网关uuid。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// Token AI网关token。
Token *string `json:"token,omitempty"`
}
CreateAiGatewayResponseParams
type DeleteAiGatewayRequest ¶
type DeleteAiGatewayRequest struct {
*common.BaseRequest
// GatewayUuid AI网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
}
DeleteAiGatewayRequest
func NewDeleteAiGatewayRequest ¶
func NewDeleteAiGatewayRequest() (request *DeleteAiGatewayRequest)
type DeleteAiGatewayResponse ¶
type DeleteAiGatewayResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewDeleteAiGatewayResponse ¶
func NewDeleteAiGatewayResponse() (response *DeleteAiGatewayResponse)
type DescribeAiGatewayExpireTimeRequest ¶
type DescribeAiGatewayExpireTimeRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
}
DescribeAiGatewayExpireTimeRequest
func NewDescribeAiGatewayExpireTimeRequest ¶
func NewDescribeAiGatewayExpireTimeRequest() (request *DescribeAiGatewayExpireTimeRequest)
type DescribeAiGatewayExpireTimeResponse ¶
type DescribeAiGatewayExpireTimeResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiGatewayExpireTimeResponseParams `json:"response,omitempty"`
}
func NewDescribeAiGatewayExpireTimeResponse ¶
func NewDescribeAiGatewayExpireTimeResponse() (response *DescribeAiGatewayExpireTimeResponse)
type DescribeAiGatewayExpireTimeResponseParams ¶
type DescribeAiGatewayExpireTimeResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// ExpireType 过期类型。
ExpireType *string `json:"expireType,omitempty"`
// ExpireTime 过期时间。
ExpireTime *string `json:"expireTime,omitempty"`
}
DescribeAiGatewayExpireTimeResponseParams
type DescribeAiGatewayIpAclRequest ¶
type DescribeAiGatewayIpAclRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
}
DescribeAiGatewayIpAclRequest
func NewDescribeAiGatewayIpAclRequest ¶
func NewDescribeAiGatewayIpAclRequest() (request *DescribeAiGatewayIpAclRequest)
type DescribeAiGatewayIpAclResponse ¶
type DescribeAiGatewayIpAclResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiGatewayIpAclResponseParams `json:"response,omitempty"`
}
func NewDescribeAiGatewayIpAclResponse ¶
func NewDescribeAiGatewayIpAclResponse() (response *DescribeAiGatewayIpAclResponse)
type DescribeAiGatewayIpAclResponseParams ¶
type DescribeAiGatewayIpAclResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// IpAclType IP访问控制类型(白名单/黑名单)。
IpAclType *string `json:"ipAclType,omitempty"`
// IpAddresses IP地址列表。
IpAddresses []string `json:"ipAddresses,omitempty"`
// Enabled 是否启用。
Enabled *bool `json:"enabled,omitempty"`
}
DescribeAiGatewayIpAclResponseParams
type DescribeAiGatewayModelsRequest ¶
type DescribeAiGatewayModelsRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
}
DescribeAiGatewayModelsRequest
func NewDescribeAiGatewayModelsRequest ¶
func NewDescribeAiGatewayModelsRequest() (request *DescribeAiGatewayModelsRequest)
type DescribeAiGatewayModelsResponse ¶
type DescribeAiGatewayModelsResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiGatewayModelsResponseParams `json:"response,omitempty"`
}
func NewDescribeAiGatewayModelsResponse ¶
func NewDescribeAiGatewayModelsResponse() (response *DescribeAiGatewayModelsResponse)
type DescribeAiGatewayModelsResponseParams ¶
type DescribeAiGatewayModelsResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// Models 关联模型列表。
Models []*AiGatewayModel `json:"models,omitempty"`
}
DescribeAiGatewayModelsResponseParams
type DescribeAiGatewayTokenLimitRequest ¶
type DescribeAiGatewayTokenLimitRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
}
DescribeAiGatewayTokenLimitRequest
func NewDescribeAiGatewayTokenLimitRequest ¶
func NewDescribeAiGatewayTokenLimitRequest() (request *DescribeAiGatewayTokenLimitRequest)
type DescribeAiGatewayTokenLimitResponse ¶
type DescribeAiGatewayTokenLimitResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiGatewayTokenLimitResponseParams `json:"response,omitempty"`
}
func NewDescribeAiGatewayTokenLimitResponse ¶
func NewDescribeAiGatewayTokenLimitResponse() (response *DescribeAiGatewayTokenLimitResponse)
type DescribeAiGatewayTokenLimitResponseParams ¶
type DescribeAiGatewayTokenLimitResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// TokenLimit Token配额限制。
TokenLimit *int `json:"tokenLimit,omitempty"`
}
DescribeAiGatewayTokenLimitResponseParams
type DescribeAiGatewaysRequest ¶
type DescribeAiGatewaysRequest struct {
*common.BaseRequest
// GatewayUuids AI网关UUID列表。
GatewayUuids []string `json:"gatewayUuids,omitempty"`
// GatewayName AI网关名称。
GatewayName *string `json:"gatewayName,omitempty"`
// Status AI网关状态。
Status *string `json:"status,omitempty"`
// ResourceGroupId 资源组ID。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// PageSize 分页每页数量。
PageSize *int `json:"pageSize,omitempty"`
// PageNum 分页页码。
PageNum *int `json:"pageNum,omitempty"`
// TagKeys 根据标签键进行搜索。
// 最长不得超过20个标签键。
TagKeys []string `json:"tagKeys,omitempty"`
// Tags 根据标签进行搜索。
// 最长不得超过20个标签。
Tags []*Tag `json:"tags,omitempty"`
}
DescribeAiGatewaysRequest
func NewDescribeAiGatewaysRequest ¶
func NewDescribeAiGatewaysRequest() (request *DescribeAiGatewaysRequest)
type DescribeAiGatewaysResponse ¶
type DescribeAiGatewaysResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiGatewaysResponseParams `json:"response,omitempty"`
}
func NewDescribeAiGatewaysResponse ¶
func NewDescribeAiGatewaysResponse() (response *DescribeAiGatewaysResponse)
type DescribeAiGatewaysResponseParams ¶
type DescribeAiGatewaysResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// TotalCount 符合条件的数据总数。
TotalCount *int `json:"totalCount,omitempty"`
// DataSet AI网关列表的数据。
DataSet []*AiGatewayInfo `json:"dataSet,omitempty"`
}
DescribeAiGatewaysResponseParams
type DescribeAiModelDailyCacheHitRateRequest ¶
type DescribeAiModelDailyCacheHitRateRequest struct {
*common.BaseRequest
// InstanceIds 实例ID。
InstanceIds *string `json:"instanceIds,omitempty"`
// ResourceGroupId 资源组ID。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// Month 月份,格式:"2026-2" 或 "2026-02"。
Month *string `json:"month,omitempty"`
}
DescribeAiModelDailyCacheHitRateRequest
func NewDescribeAiModelDailyCacheHitRateRequest ¶
func NewDescribeAiModelDailyCacheHitRateRequest() (request *DescribeAiModelDailyCacheHitRateRequest)
type DescribeAiModelDailyCacheHitRateResponse ¶
type DescribeAiModelDailyCacheHitRateResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiModelDailyCacheHitRateResponseParams `json:"response,omitempty"`
}
func NewDescribeAiModelDailyCacheHitRateResponse ¶
func NewDescribeAiModelDailyCacheHitRateResponse() (response *DescribeAiModelDailyCacheHitRateResponse)
type DescribeAiModelDailyCacheHitRateResponseParams ¶
type DescribeAiModelDailyCacheHitRateResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// Dates 日期列表。
Dates []string `json:"dates,omitempty"`
// CacheHit 日模型缓存命中率。
CacheHit []*ModelCacheHitSeries `json:"cacheHit,omitempty"`
}
DescribeAiModelDailyCacheHitRateResponseParams
type DescribeAiModelDailyCostRequest ¶
type DescribeAiModelDailyCostRequest struct {
*common.BaseRequest
// InstanceIds 实例ID。
InstanceIds *string `json:"instanceIds,omitempty"`
// ResourceGroupId 资源组ID。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// Month 月份,格式:"2026-2" 或 "2026-02"。
Month *string `json:"month,omitempty"`
}
DescribeAiModelDailyCostRequest
func NewDescribeAiModelDailyCostRequest ¶
func NewDescribeAiModelDailyCostRequest() (request *DescribeAiModelDailyCostRequest)
type DescribeAiModelDailyCostResponse ¶
type DescribeAiModelDailyCostResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiModelDailyCostResponseParams `json:"response,omitempty"`
}
func NewDescribeAiModelDailyCostResponse ¶
func NewDescribeAiModelDailyCostResponse() (response *DescribeAiModelDailyCostResponse)
type DescribeAiModelDailyCostResponseParams ¶
type DescribeAiModelDailyCostResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// Dates 日期列表。
Dates []string `json:"dates,omitempty"`
// Series 日模型费用。
Series []*ModelCostSeries `json:"series,omitempty"`
}
DescribeAiModelDailyCostResponseParams
type DescribeAiModelsRequest ¶
type DescribeAiModelsRequest struct {
*common.BaseRequest
}
func NewDescribeAiModelsRequest ¶
func NewDescribeAiModelsRequest() (request *DescribeAiModelsRequest)
type DescribeAiModelsResponse ¶
type DescribeAiModelsResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiModelsResponseParams `json:"response,omitempty"`
}
func NewDescribeAiModelsResponse ¶
func NewDescribeAiModelsResponse() (response *DescribeAiModelsResponse)
type DescribeAiModelsResponseParams ¶
type DescribeAiModelsResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// ModelSet AI网关模型。
ModelSet []*AiModel `json:"modelSet,omitempty"`
}
DescribeAiModelsResponseParams
type DescribeAiMonthlyTotalCostRequest ¶
type DescribeAiMonthlyTotalCostRequest struct {
*common.BaseRequest
// InstanceIds 实例ID。
InstanceIds *string `json:"instanceIds,omitempty"`
// ResourceGroupId 资源组ID。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// Month 月份,格式:"2026-2" 或 "2026-02"。
Month *string `json:"month,omitempty"`
}
DescribeAiMonthlyTotalCostRequest
func NewDescribeAiMonthlyTotalCostRequest ¶
func NewDescribeAiMonthlyTotalCostRequest() (request *DescribeAiMonthlyTotalCostRequest)
type DescribeAiMonthlyTotalCostResponse ¶
type DescribeAiMonthlyTotalCostResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiMonthlyTotalCostResponseParams `json:"response,omitempty"`
}
func NewDescribeAiMonthlyTotalCostResponse ¶
func NewDescribeAiMonthlyTotalCostResponse() (response *DescribeAiMonthlyTotalCostResponse)
type DescribeAiMonthlyTotalCostResponseParams ¶
type DescribeAiMonthlyTotalCostResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// TotalCost AI网关月总费用。
TotalCost *float64 `json:"totalCost,omitempty"`
}
DescribeAiMonthlyTotalCostResponseParams
type DescribeAiUsageDataRequest ¶
type DescribeAiUsageDataRequest struct {
*common.BaseRequest
// InstanceIds 实例ID。
InstanceIds *string `json:"instanceIds,omitempty"`
// ResourceGroupId 资源组ID。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// Start 开始时间戳10位,示例:1659427200。
Start *int64 `json:"start,omitempty"`
// End 结束时间戳10位,示例:1659434400。
End *int64 `json:"end,omitempty"`
}
DescribeAiUsageDataRequest
func NewDescribeAiUsageDataRequest ¶
func NewDescribeAiUsageDataRequest() (request *DescribeAiUsageDataRequest)
type DescribeAiUsageDataResponse ¶
type DescribeAiUsageDataResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiUsageDataResponseParams `json:"response,omitempty"`
}
func NewDescribeAiUsageDataResponse ¶
func NewDescribeAiUsageDataResponse() (response *DescribeAiUsageDataResponse)
type DescribeAiUsageDataResponseParams ¶
type DescribeAiUsageDataResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// TotalInputTokens 总输入token数。
TotalInputTokens *int64 `json:"totalInputTokens,omitempty"`
// TotalOutputTokens 总输出token数。
TotalOutputTokens *int64 `json:"totalOutputTokens,omitempty"`
// InstanceModelToken 实例模型用量数据。
InstanceModelToken []*UsageData `json:"instanceModelToken,omitempty"`
}
DescribeAiUsageDataResponseParams
type DescribeAiUsageDetailDataRequest ¶
type DescribeAiUsageDetailDataRequest struct {
*common.BaseRequest
// InstanceIds 实例ID。
InstanceIds *string `json:"instanceIds,omitempty"`
// ResourceGroupId 资源组ID。
ResourceGroupId *string `json:"resourceGroupId,omitempty"`
// Start 开始时间戳10位,示例:1659427200。
Start *int64 `json:"start,omitempty"`
// End 结束时间戳10位,示例:1659434400。
End *int64 `json:"end,omitempty"`
}
DescribeAiUsageDetailDataRequest
func NewDescribeAiUsageDetailDataRequest ¶
func NewDescribeAiUsageDetailDataRequest() (request *DescribeAiUsageDetailDataRequest)
type DescribeAiUsageDetailDataResponse ¶
type DescribeAiUsageDetailDataResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeAiUsageDetailDataResponseParams `json:"response,omitempty"`
}
func NewDescribeAiUsageDetailDataResponse ¶
func NewDescribeAiUsageDetailDataResponse() (response *DescribeAiUsageDetailDataResponse)
type DescribeAiUsageDetailDataResponseParams ¶
type DescribeAiUsageDetailDataResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// Request 请求数明细数据。
Request []*UsageDataPoint `json:"request,omitempty"`
// Token 总Token明细数据。
Token []*UsageDataPoint `json:"token,omitempty"`
// InputToken 输入Token明细数据。
InputToken []*UsageDataPoint `json:"inputToken,omitempty"`
// OutToken 输出Token明细数据。
OutToken []*UsageDataPoint `json:"outToken,omitempty"`
}
DescribeAiUsageDetailDataResponseParams
type ModelCacheHitSeries ¶
type ModelCacheHitSeries struct {
// ModelName 模型名称。
ModelName *string `json:"modelName,omitempty"`
// Data 模型日缓存命中率列表,格式如 "90%"。
Data []string `json:"data,omitempty"`
}
ModelCacheHitSeries 描述模型日缓存命中率信息。
type ModelCostSeries ¶
type ModelCostSeries struct {
// ModelName 模型名称。
ModelName *string `json:"modelName,omitempty"`
// Data 模型日费用列表。
Data []float64 `json:"data,omitempty"`
}
ModelCostSeries 描述模型日费用信息。
type ModelValueItem ¶
type ModelValueItem struct {
// Model 模型名称。
Model *string `json:"model,omitempty"`
// Value 用量值。
Value *int64 `json:"value,omitempty"`
}
ModelValueItem 模型用量值项
type ModifyAiGatewayExpireTimeRequest ¶
type ModifyAiGatewayExpireTimeRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// ExpireType 过期类型。
ExpireType *string `json:"expireType,omitempty"`
// ExpireTime 过期时间。
ExpireTime *string `json:"expireTime,omitempty"`
}
ModifyAiGatewayExpireTimeRequest
func NewModifyAiGatewayExpireTimeRequest ¶
func NewModifyAiGatewayExpireTimeRequest() (request *ModifyAiGatewayExpireTimeRequest)
type ModifyAiGatewayExpireTimeResponse ¶
type ModifyAiGatewayExpireTimeResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewModifyAiGatewayExpireTimeResponse ¶
func NewModifyAiGatewayExpireTimeResponse() (response *ModifyAiGatewayExpireTimeResponse)
type ModifyAiGatewayIpAclRequest ¶
type ModifyAiGatewayIpAclRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// IpAclType IP访问控制类型(白名单/黑名单)。
IpAclType *string `json:"ipAclType,omitempty"`
// IpAddresses IP地址列表。
IpAddresses []string `json:"ipAddresses,omitempty"`
// Enabled 是否启用。
Enabled *bool `json:"enabled,omitempty"`
}
ModifyAiGatewayIpAclRequest
func NewModifyAiGatewayIpAclRequest ¶
func NewModifyAiGatewayIpAclRequest() (request *ModifyAiGatewayIpAclRequest)
type ModifyAiGatewayIpAclResponse ¶
type ModifyAiGatewayIpAclResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewModifyAiGatewayIpAclResponse ¶
func NewModifyAiGatewayIpAclResponse() (response *ModifyAiGatewayIpAclResponse)
type ModifyAiGatewayModelsRequest ¶
type ModifyAiGatewayModelsRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// ModelAccess 模型访问权限。
ModelAccess *string `json:"modelAccess,omitempty"`
// ModelUuids 模型UUID列表。
ModelUuids []string `json:"modelUuids,omitempty"`
}
ModifyAiGatewayModelsRequest
func NewModifyAiGatewayModelsRequest ¶
func NewModifyAiGatewayModelsRequest() (request *ModifyAiGatewayModelsRequest)
type ModifyAiGatewayModelsResponse ¶
type ModifyAiGatewayModelsResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewModifyAiGatewayModelsResponse ¶
func NewModifyAiGatewayModelsResponse() (response *ModifyAiGatewayModelsResponse)
type ModifyAiGatewayNameRequest ¶
type ModifyAiGatewayNameRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// GatewayName 网关名称。
GatewayName *string `json:"gatewayName,omitempty"`
}
ModifyAiGatewayNameRequest
func NewModifyAiGatewayNameRequest ¶
func NewModifyAiGatewayNameRequest() (request *ModifyAiGatewayNameRequest)
type ModifyAiGatewayNameResponse ¶
type ModifyAiGatewayNameResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewModifyAiGatewayNameResponse ¶
func NewModifyAiGatewayNameResponse() (response *ModifyAiGatewayNameResponse)
type ModifyAiGatewayTokenLimitRequest ¶
type ModifyAiGatewayTokenLimitRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// TokenLimit Token限制(访问限制)。
TokenLimit *int `json:"tokenLimit,omitempty"`
}
ModifyAiGatewayTokenLimitRequest
func NewModifyAiGatewayTokenLimitRequest ¶
func NewModifyAiGatewayTokenLimitRequest() (request *ModifyAiGatewayTokenLimitRequest)
type ModifyAiGatewayTokenLimitResponse ¶
type ModifyAiGatewayTokenLimitResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewModifyAiGatewayTokenLimitResponse ¶
func NewModifyAiGatewayTokenLimitResponse() (response *ModifyAiGatewayTokenLimitResponse)
type StartAiGatewayRequest ¶
type StartAiGatewayRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
}
StartAiGatewayRequest
func NewStartAiGatewayRequest ¶
func NewStartAiGatewayRequest() (request *StartAiGatewayRequest)
type StartAiGatewayResponse ¶
type StartAiGatewayResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewStartAiGatewayResponse ¶
func NewStartAiGatewayResponse() (response *StartAiGatewayResponse)
type StopAiGatewayRequest ¶
type StopAiGatewayRequest struct {
*common.BaseRequest
// GatewayUuid 网关UUID。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
}
StopAiGatewayRequest
func NewStopAiGatewayRequest ¶
func NewStopAiGatewayRequest() (request *StopAiGatewayRequest)
type StopAiGatewayResponse ¶
type StopAiGatewayResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewStopAiGatewayResponse ¶
func NewStopAiGatewayResponse() (response *StopAiGatewayResponse)
type Tag ¶
type Tag struct {
// Key 标签键。
// 长度限制:1~64个字符。
Key *string `json:"key,omitempty"`
// Value 标签值。
// 长度限制:1~64个字符。
Value *string `json:"value,omitempty"`
}
Tag 描述一个标签键值对的信息。
type TagAssociation ¶
type TagAssociation struct {
// Tags 标签对列表。
Tags []*Tag `json:"tags,omitempty"`
}
TagAssociation 描述创建资源时同时绑定的标签对的信息。
type Tags ¶
type Tags struct {
// Tags 标签对列表。
Tags []*Tag `json:"tags,omitempty"`
}
Tags 描述资源关联的标签信息。
type UsageData ¶
type UsageData struct {
// ModelUuid 模型uuid。
ModelUuid *string `json:"modelUuid,omitempty"`
// ModelName 模型名称。
ModelName *string `json:"modelName,omitempty"`
// TotalTokens 模型总token数。
TotalTokens *int64 `json:"totalTokens,omitempty"`
// TotalRequests 模型总request数。
TotalRequests *int64 `json:"totalRequests,omitempty"`
}
UsageData 描述AI网关模型用量信息。
type UsageDataPoint ¶
type UsageDataPoint struct {
// Time 时间戳(毫秒)。
Time *int64 `json:"time,omitempty"`
// Data 各模型的用量值列表。
Data []*ModelValueItem `json:"data,omitempty"`
}
UsageDataPoint 用量数据点,包含时间戳和各模型的用量值