apps

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: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAction

type AddAction actions.Action

func (*AddAction) Run

func (this *AddAction) Run(params struct {
	AgentId string
})

添加App

func (*AddAction) RunPost

func (this *AddAction) RunPost(params struct {
	AgentId           string
	Name              string
	On                bool
	IsSharedWithGroup bool
	Must              *actions.Must
})

提交保存

type AddDefaultChartsAction

type AddDefaultChartsAction actions.Action

func (*AddDefaultChartsAction) Run

func (this *AddDefaultChartsAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
})

添加数据源默认图表

type AddItemAction

type AddItemAction actions.Action

func (*AddItemAction) Run

func (this *AddItemAction) Run(params struct {
	AgentId string
	AppId   string
	From    string
})

添加监控项

func (*AddItemAction) RunPost

func (this *AddItemAction) RunPost(params struct {
	AgentId    string
	AppId      string
	Name       string
	SourceCode string
	On         bool

	DataFormat uint8
	Interval   uint

	CondParams         []string
	CondOps            []string
	CondValues         []string
	CondNoticeLevels   []uint
	CondNoticeMessages []string
	CondActions        []string
	CondMaxFails       []int

	RecoverSuccesses int

	Must *actions.Must
})

提交保存

type AddItemChartAction

type AddItemChartAction actions.Action

func (*AddItemChartAction) Run

func (this *AddItemChartAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
	From    string
})

给监控项添加图标

func (*AddItemChartAction) RunPost

func (this *AddItemChartAction) RunPost(params struct {
	AgentId string
	AppId   string
	ItemId  string

	Name      string
	On        bool
	Columns   uint8
	ChartType string

	HTMLCode string `alias:"htmlCode"`

	PieParam string
	PieLimit int

	LineParams []string
	LineFills  []int
	LineColors []string
	LineNames  []string
	LineMax    float64

	URL string `alias:"urlURL"`

	JavascriptCode string

	SupportsTimeRange bool

	Must *actions.Must
})

提交保存

type AddNoticeReceiversAction

type AddNoticeReceiversAction actions.Action

func (*AddNoticeReceiversAction) Run

func (this *AddNoticeReceiversAction) Run(params struct {
	AgentId string
	AppId   string
	Level   notices.NoticeLevel
})

添加通知接收人

func (*AddNoticeReceiversAction) RunPost

func (this *AddNoticeReceiversAction) RunPost(params struct {
	AgentId string
	AppId   string
	Level   notices.NoticeLevel
	On      bool
	Name    string
	MediaId string
	User    string
	Must    actions.Must
})

提交保存

type AddTaskAction

type AddTaskAction actions.Action

func (*AddTaskAction) Run

func (this *AddTaskAction) Run(params struct {
	From         string
	AgentId      string
	AppId        string
	IsScheduling bool
	IsBooting    bool
	IsManual     bool
})

添加任务

func (*AddTaskAction) RunPost

func (this *AddTaskAction) RunPost(params struct {
	AgentId       string
	AppId         string
	Name          string
	Script        string
	Cwd           string
	EnvNames      []string
	EnvValues     []string
	SchedulesJSON string
	IsBooting     bool
	IsManual      bool
	On            bool
	Must          *actions.Must
})

type BootAction

type BootAction actions.Action

func (*BootAction) Run

func (this *BootAction) Run(params struct {
	AgentId string
	AppId   string
})

启动任务

type ClearItemValuesAction

type ClearItemValuesAction actions.Action

func (*ClearItemValuesAction) Run

func (this *ClearItemValuesAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
	Level   int
})

清除数值记录

type DeleteAction

type DeleteAction actions.Action

func (*DeleteAction) Run

func (this *DeleteAction) Run(params struct {
	AgentId string
	AppId   string
})

删除App

type DeleteItemAction

type DeleteItemAction actions.Action

func (*DeleteItemAction) Run

func (this *DeleteItemAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
})

删除监控项

type DeleteItemChartAction

type DeleteItemChartAction actions.Action

func (*DeleteItemChartAction) Run

func (this *DeleteItemChartAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
	ChartId string
})

删除Chart

type DeleteNoticeReceiversAction

type DeleteNoticeReceiversAction actions.Action

func (*DeleteNoticeReceiversAction) Run

func (this *DeleteNoticeReceiversAction) Run(params struct {
	AgentId    string
	AppId      string
	Level      notices.NoticeLevel
	ReceiverId string
})

删除接收人

type DeleteTaskAction

type DeleteTaskAction actions.Action

func (*DeleteTaskAction) Run

func (this *DeleteTaskAction) Run(params struct {
	AgentId string
	AppId   string
	TaskId  string
})

删除任务

type DetailAction

type DetailAction actions.Action

func (*DetailAction) Run

func (this *DetailAction) Run(params struct {
	AgentId string
	AppId   string
})

App详情

type ExecItemSourceAction

type ExecItemSourceAction actions.Action

func (*ExecItemSourceAction) Run

func (this *ExecItemSourceAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
})

立即执行监控项数据源

type Helper

type Helper struct {
}

func (*Helper) BeforeAction

func (this *Helper) BeforeAction(action actions.ActionWrapper)

type IndexAction

type IndexAction actions.Action

func (*IndexAction) Run

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

看板首页

type ItemChartsAction

type ItemChartsAction actions.Action

func (*ItemChartsAction) Run

func (this *ItemChartsAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
})

图表

func (*ItemChartsAction) RunPost

func (this *ItemChartsAction) RunPost(params struct {
	AgentId string
	AppId   string
	ItemId  string
	From    string
})

获取图表数据

type ItemDetailAction

type ItemDetailAction actions.Action

func (*ItemDetailAction) Run

func (this *ItemDetailAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
})

监控项详情

type ItemOffAction

type ItemOffAction actions.Action

func (*ItemOffAction) Run

func (this *ItemOffAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
})

关闭监控项

type ItemOnAction

type ItemOnAction actions.Action

func (*ItemOnAction) Run

func (this *ItemOnAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
})

启用监控项

type ItemValuesAction

type ItemValuesAction actions.Action

func (*ItemValuesAction) Run

func (this *ItemValuesAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
	Level   int
})

监控项数据展示

func (*ItemValuesAction) RunPost

func (this *ItemValuesAction) RunPost(params struct {
	AgentId string
	AppId   string
	ItemId  string
	LastId  string
	Level   notices.NoticeLevel
})

获取监控项数据

type ManualAction

type ManualAction actions.Action

func (*ManualAction) Run

func (this *ManualAction) Run(params struct {
	AgentId string
	AppId   string
})

手动任务

type MonitorAction

type MonitorAction actions.Action

func (*MonitorAction) Run

func (this *MonitorAction) Run(params struct {
	AgentId string
	AppId   string
})

监控

func (*MonitorAction) RunPost

func (this *MonitorAction) RunPost(params struct {
	AgentId string
	AppId   string
})

监控数据

type MoveAction

type MoveAction actions.Action

func (*MoveAction) RunPost

func (this *MoveAction) RunPost(params struct {
	AgentId   string
	FromIndex int
	ToIndex   int
})

移动App位置

type NoticeReceiversAction

type NoticeReceiversAction actions.Action

func (*NoticeReceiversAction) Run

func (this *NoticeReceiversAction) Run(params struct {
	AgentId string
	AppId   string
})

通知接收人设置

type OffAction

type OffAction actions.Action

func (*OffAction) Run

func (this *OffAction) Run(params struct {
	AgentId string
	AppId   string
})

关闭App

type OnAction

type OnAction actions.Action

func (*OnAction) Run

func (this *OnAction) Run(params struct {
	AgentId string
	AppId   string
})

启用App

type PreviewItemChartAction

type PreviewItemChartAction actions.Action

func (*PreviewItemChartAction) RunPost

func (this *PreviewItemChartAction) RunPost(params struct {
	AgentId string
	AppId   string
	ItemId  string

	Name      string
	Columns   uint8
	ChartType string

	HTMLCode string `alias:"htmlCode"`

	PieParam string
	PieLimit int

	LineParams []string
	LineFills  []int
	LineColors []string
	LineNames  []string
	LineMax    float64

	URL string `alias:"urlURL"`

	JavascriptCode string

	Must *actions.Must
})

预览图表

type RunTaskAction

type RunTaskAction actions.Action

func (*RunTaskAction) Run

func (this *RunTaskAction) Run(params struct {
	AgentId string
	AppId   string
	TaskId  string
})

运行一次任务

type ScheduleAction

type ScheduleAction actions.Action

func (*ScheduleAction) Run

func (this *ScheduleAction) Run(params struct {
	AgentId string
	AppId   string
})

定时任务

type TaskDetailAction

type TaskDetailAction actions.Action

func (*TaskDetailAction) Run

func (this *TaskDetailAction) Run(params struct {
	AgentId string
	AppId   string
	TaskId  string
	From    string
	Tabbar  string
})

任务详情

type TaskLogsAction

type TaskLogsAction actions.Action

func (*TaskLogsAction) Run

func (this *TaskLogsAction) Run(params struct {
	AgentId string
	AppId   string
	TaskId  string
	Tabbar  string
})

任务日志

func (*TaskLogsAction) RunPost

func (this *TaskLogsAction) RunPost(params struct {
	AgentId string
	TaskId  string
	LastId  string
})

日志数据

type TaskOffAction

type TaskOffAction actions.Action

func (*TaskOffAction) RunPost

func (this *TaskOffAction) RunPost(params struct {
	AgentId string
	AppId   string
	TaskId  string
})

关闭任务

type TaskOnAction

type TaskOnAction actions.Action

func (*TaskOnAction) RunPost

func (this *TaskOnAction) RunPost(params struct {
	AgentId string
	AppId   string
	TaskId  string
})

启动任务

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) Run

func (this *UpdateAction) Run(params struct {
	From    string
	AgentId string
	AppId   string
})

修改

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	AgentId           string
	AppId             string
	Name              string
	On                bool
	IsSharedWithGroup bool
	Must              *actions.Must
})

提交保存

type UpdateItemAction

type UpdateItemAction actions.Action

func (*UpdateItemAction) Run

func (this *UpdateItemAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
	From    string
})

添加监控项

func (*UpdateItemAction) RunPost

func (this *UpdateItemAction) RunPost(params struct {
	AgentId string
	AppId   string
	ItemId  string

	Name       string
	SourceCode string
	On         bool

	DataFormat uint8
	Interval   uint

	CondParams         []string
	CondOps            []string
	CondValues         []string
	CondNoticeLevels   []uint
	CondNoticeMessages []string
	CondActions        []string
	CondMaxFails       []int

	RecoverSuccesses int

	Must *actions.Must
})

提交保存

type UpdateItemChartAction

type UpdateItemChartAction actions.Action

func (*UpdateItemChartAction) Run

func (this *UpdateItemChartAction) Run(params struct {
	AgentId string
	AppId   string
	ItemId  string
	ChartId string
	From    string
})

给监控项添加图标

func (*UpdateItemChartAction) RunPost

func (this *UpdateItemChartAction) RunPost(params struct {
	AgentId string
	AppId   string
	ItemId  string
	ChartId string

	Name      string
	On        bool
	Columns   uint8
	ChartType string

	HTMLCode string `alias:"htmlCode"`

	PieParam string
	PieLimit int

	LineParams []string
	LineFills  []int
	LineColors []string
	LineNames  []string
	LineMax    float64

	URL string `alias:"urlURL"`

	JavascriptCode string

	SupportsTimeRange bool

	Must *actions.Must
})

提交保存

type UpdateTaskAction

type UpdateTaskAction actions.Action

func (*UpdateTaskAction) Run

func (this *UpdateTaskAction) Run(params struct {
	AgentId string
	AppId   string
	TaskId  string
	From    string
	Tabbar  string
})

修改任务

func (*UpdateTaskAction) RunPost

func (this *UpdateTaskAction) RunPost(params struct {
	AgentId       string
	AppId         string
	TaskId        string
	Name          string
	Script        string
	Cwd           string
	EnvNames      []string
	EnvValues     []string
	SchedulesJSON string
	IsBooting     bool
	IsManual      bool
	On            bool
	Must          *actions.Must
})

Jump to

Keyboard shortcuts

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