Documentation
¶
Overview ¶
* Zenlayer.com Inc. * Copyright (c) 2014-2022 All Rights Reserved.
Index ¶
- Constants
- type BillingItem
- 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)
- type DescribeMcpMonthlyBillingRequest
- type DescribeMcpMonthlyBillingResponse
- type DescribeMcpMonthlyBillingResponseParams
Constants ¶
View Source
const ( APIVersion = "2026-06-02" SERVICE = "mcpgw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingItem ¶
type BillingItem struct {
// GatewayUuid MCP网关uuid。
GatewayUuid *string `json:"gatewayUuid,omitempty"`
// GatewayName MCP网关名称。
GatewayName *string `json:"gatewayName,omitempty"`
// Date 用量日期,格式 yyyy-MM-dd。
Date *string `json:"date,omitempty"`
// Unit 计量单位。
Unit *string `json:"unit,omitempty"`
// Usage 用量(字符串,保留精度)。
Usage *string `json:"usage,omitempty"`
// ModelName 模型名称。
ModelName *string `json:"modelName,omitempty"`
// UnitPrice 单价(字符串,保留精度)。
UnitPrice *string `json:"unitPrice,omitempty"`
// OriginalPrice 原价(字符串,保留精度)。
OriginalPrice *string `json:"originalPrice,omitempty"`
}
BillingItem 描述MCP网关按月计费明细项。
type Client ¶
func NewClientWithSecretKey ¶
func NewClientWithToken ¶
func (*Client) DescribeMcpMonthlyBilling ¶
func (c *Client) DescribeMcpMonthlyBilling(request *DescribeMcpMonthlyBillingRequest) (response *DescribeMcpMonthlyBillingResponse, err error)
DescribeMcpMonthlyBilling 查询MCP网关按月计费明细
type DescribeMcpMonthlyBillingRequest ¶
type DescribeMcpMonthlyBillingRequest struct {
*common.BaseRequest
// Month 月份,格式:"2026-05"。
Month *string `json:"month,omitempty"`
}
DescribeMcpMonthlyBillingRequest
func NewDescribeMcpMonthlyBillingRequest ¶
func NewDescribeMcpMonthlyBillingRequest() (request *DescribeMcpMonthlyBillingRequest)
type DescribeMcpMonthlyBillingResponse ¶
type DescribeMcpMonthlyBillingResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeMcpMonthlyBillingResponseParams `json:"response,omitempty"`
}
func NewDescribeMcpMonthlyBillingResponse ¶
func NewDescribeMcpMonthlyBillingResponse() (response *DescribeMcpMonthlyBillingResponse)
type DescribeMcpMonthlyBillingResponseParams ¶
type DescribeMcpMonthlyBillingResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// Items 按Token+日期维度的计费明细。
Items []*BillingItem `json:"items,omitempty"`
// TotalUsage 当月用量合计(字符串,保留精度)。
TotalUsage *string `json:"totalUsage,omitempty"`
}
DescribeMcpMonthlyBillingResponseParams
Click to show internal directories.
Click to hide internal directories.