measure

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const APIPathQueryChartData = "/open_api/:project_key/measure/:chart_id"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartData

type ChartData struct {
	Dim map[int32]string `json:"dim"`

	Value map[int32]string `json:"value"`
}

type MeasureData

type MeasureData struct {
	Name string `json:"name"`

	ChartID string `json:"chart_id"`

	ChartDataList [][]*ChartData `json:"chart_data_list"`

	DimTitles []string `json:"dim_titles"`

	QuotaTitles []string `json:"quota_titles"`
}

type MeasureService

type MeasureService struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(config *core.Config) *MeasureService

func (*MeasureService) QueryChartData

func (a *MeasureService) QueryChartData(ctx context.Context, req *QueryChartDataReq, options ...core.RequestOptionFunc) (*QueryChartDataResp, error)

度量查询接口

type QueryChartDataReq

type QueryChartDataReq struct {
	// contains filtered or unexported fields
}

type QueryChartDataReqBuilder

type QueryChartDataReqBuilder struct {
	// contains filtered or unexported fields
}

func NewQueryChartDataReqBuilder

func NewQueryChartDataReqBuilder() *QueryChartDataReqBuilder

func (*QueryChartDataReqBuilder) Build

func (builder *QueryChartDataReqBuilder) Build() *QueryChartDataReq

func (*QueryChartDataReqBuilder) ChartID

func (builder *QueryChartDataReqBuilder) ChartID(chartID string) *QueryChartDataReqBuilder

func (*QueryChartDataReqBuilder) ProjectKey

func (builder *QueryChartDataReqBuilder) ProjectKey(projectKey string) *QueryChartDataReqBuilder

type QueryChartDataResp

type QueryChartDataResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data *MeasureData `json:"data"`
}

Jump to

Keyboard shortcuts

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