Documentation
¶
Index ¶
- Constants
- func Exec[T any](r *resty.Request, method, addr, path, action, version, region, service string, ...) (t T, _ error)
- type Client
- func (c *Client) GetArkUsage(req *GetArkUsageReq) ([]*GetArkUsageResult, error)
- func (c *Client) ListArkEndpoints(req *ListArkEndpointsReq) ([]*ListArkEndpointsItem, error)
- func (c *Client) ListBillDetail(req *ListBillDetailReq) ([]*ListBillDetailItem, error)
- func (c *Client) QueryBalanceAcct() (*QueryBalanceAcctData, error)
- func (c *Client) R() *resty.Request
- type GetArkUsageData
- type GetArkUsageMetricItem
- type GetArkUsageMetricValue
- type GetArkUsageReq
- type GetArkUsageResult
- type ListArkEndpointsData
- type ListArkEndpointsItem
- type ListArkEndpointsReq
- type ListBillDetailData
- type ListBillDetailItem
- type ListBillDetailReq
- type QueryBalanceAcctData
Constants ¶
View Source
const ( // Region https://www.volcengine.com/docs/6369/67268 Region = "cn-beijing" // Algorithm https://www.volcengine.com/docs/6369/67270 Algorithm = "HMAC-SHA256" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetArkUsage ¶ added in v1.0.7
func (c *Client) GetArkUsage(req *GetArkUsageReq) ([]*GetArkUsageResult, error)
func (*Client) ListArkEndpoints ¶ added in v1.0.7
func (c *Client) ListArkEndpoints(req *ListArkEndpointsReq) ([]*ListArkEndpointsItem, error)
func (*Client) ListBillDetail ¶ added in v1.0.6
func (c *Client) ListBillDetail(req *ListBillDetailReq) ([]*ListBillDetailItem, error)
func (*Client) QueryBalanceAcct ¶
func (c *Client) QueryBalanceAcct() (*QueryBalanceAcctData, error)
type GetArkUsageData ¶ added in v1.0.7
type GetArkUsageData struct {
UsageResults []*GetArkUsageResult `json:"UsageResults"`
}
type GetArkUsageMetricItem ¶ added in v1.0.7
type GetArkUsageMetricItem struct {
Values []*GetArkUsageMetricValue `json:"Values"`
}
type GetArkUsageMetricValue ¶ added in v1.0.7
type GetArkUsageReq ¶ added in v1.0.7
type GetArkUsageResult ¶ added in v1.0.7
type GetArkUsageResult struct {
Name string `json:"Name"`
MetricItems []*GetArkUsageMetricItem `json:"MetricItems"`
}
type ListArkEndpointsData ¶ added in v1.0.7
type ListArkEndpointsData struct {
PageNumber int `json:"PageNumber"`
PageSize int `json:"PageSize"`
TotalCount int `json:"TotalCount"`
Items []*ListArkEndpointsItem `json:"Items"`
}
type ListArkEndpointsItem ¶ added in v1.0.7
type ListArkEndpointsReq ¶ added in v1.0.7
type ListBillDetailData ¶ added in v1.0.6
type ListBillDetailData struct {
Offset int `json:"Offset"`
Limit int `json:"Limit"`
Total int `json:"Total"`
List []*ListBillDetailItem `json:"List"`
}
type ListBillDetailItem ¶ added in v1.0.6
type ListBillDetailReq ¶ added in v1.0.6
type ListBillDetailReq struct {
Offset int `json:"Offset"`
Limit int `json:"Limit"`
BillPeriod string `json:"BillPeriod"`
ExpenseDate string `json:"ExpenseDate"`
GroupPeriod int `json:"GroupPeriod"`
GroupTerm int `json:"GroupTerm"`
IgnoreZero int `json:"IgnoreZero"`
NeedRecordNum int `json:"NeedRecordNum"`
}
type QueryBalanceAcctData ¶
Click to show internal directories.
Click to hide internal directories.