mcpgw

package
v0.2.40 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* Zenlayer.com Inc. * Copyright (c) 2014-2022 All Rights Reserved.

Index

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

type Client struct {
	common.Client
}

func NewClient

func NewClient(config *common.Config, secretKeyId, secretKeyPassword string) (client *Client, err error)

func NewClientWithSecretKey

func NewClientWithSecretKey(secretKeyId, secretKeyPassword string) (client *Client, err error)

func NewClientWithToken

func NewClientWithToken(token string) (client *Client, err error)

func NewClientWithTokenAndConfig

func NewClientWithTokenAndConfig(config *common.Config, token string) (client *Client, err error)

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

Jump to

Keyboard shortcuts

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