board

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddItemAction

type AddItemAction actions.Action

func (*AddItemAction) RunPost

func (this *AddItemAction) RunPost(params struct {
	ServerId string
	Code     string
})

添加数据指标

type CancelChartAction

type CancelChartAction actions.Action

func (*CancelChartAction) Run

func (this *CancelChartAction) Run(params struct {
	ServerId string
	WidgetId string
	ChartId  string
	Type     string
})

使用某个Chart

type ChartAction

type ChartAction actions.Action

func (*ChartAction) Run

func (this *ChartAction) Run(params struct {
	ServerId  string
	WidgetId  string
	ChartId   string
	BoardType string
})

图表详情

type ChartsAction

type ChartsAction actions.Action

func (*ChartsAction) Run

func (this *ChartsAction) Run(params struct {
	ServerId  string
	BoardType string
})

图表

type DeleteChartAction

type DeleteChartAction actions.Action

func (*DeleteChartAction) Run

func (this *DeleteChartAction) Run(params struct {
	ServerId string
	WidgetId string
	ChartId  string
})

删除图表

type DeleteItemAction

type DeleteItemAction actions.Action

func (*DeleteItemAction) RunPost

func (this *DeleteItemAction) RunPost(params struct {
	ServerId string
	Code     string
})

删除指标

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

func (this *IndexAction) Run(params struct {
	ServerId  string
	BoardType string
})

看板

func (*IndexAction) RunPost

func (this *IndexAction) RunPost(params struct {
	ServerId string
	Type     string // realtime or stat
	Events   string
})

看板数据

type ItemsAction

type ItemsAction actions.Action

func (*ItemsAction) RunGet

func (this *ItemsAction) RunGet(params struct {
	BoardType string
	ServerId  string
})

数据指标

type MakeAction

type MakeAction actions.Action

func (*MakeAction) Run

func (this *MakeAction) Run(params struct {
	ServerId  string
	BoardType string
})

制作图表

func (*MakeAction) RunPost

func (this *MakeAction) RunPost(params struct {
	ServerId       string
	Name           string
	Description    string
	Columns        uint8
	Items          []string
	JavascriptCode string
	On             bool
	Must           *actions.Must
})

保存提交

type MoveChartAction

type MoveChartAction actions.Action

func (*MoveChartAction) Run

func (this *MoveChartAction) Run(params struct {
	ServerId string
	Type     string
	OldIndex int
	NewIndex int
})

移动图表位置

type RefreshDataAction

type RefreshDataAction actions.Action

func (*RefreshDataAction) RunPost

func (this *RefreshDataAction) RunPost(params struct {
	ServerId string
})

刷新数据

type TestAction

type TestAction actions.Action

func (*TestAction) Run

func (this *TestAction) Run(params struct {
	ServerId       string
	Name           string
	Description    string
	Columns        uint8
	Items          []string
	JavascriptCode string
	On             bool
	AutoGenerate   bool // 是否自动生成测试数据
	Events         string
	Must           *actions.Must
})

测试图表

type UpdateChartAction

type UpdateChartAction actions.Action

func (*UpdateChartAction) Run

func (this *UpdateChartAction) Run(params struct {
	From      string
	ServerId  string
	WidgetId  string
	ChartId   string
	BoardType string
})

修改图表

func (*UpdateChartAction) RunPost

func (this *UpdateChartAction) RunPost(params struct {
	ServerId       string
	WidgetId       string
	ChartId        string
	Name           string
	Description    string
	Columns        uint8
	Items          []string
	JavascriptCode string
	On             bool
	Must           *actions.Must
})

保存提交

type UseChartAction

type UseChartAction actions.Action

func (*UseChartAction) Run

func (this *UseChartAction) Run(params struct {
	ServerId string
	WidgetId string
	ChartId  string
	Type     string
})

使用某个Chart

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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