Documentation
¶
Index ¶
- type Context
- type Engine
- func (this *Engine) AddOutput(output string)
- func (this *Engine) Charts() []maps.Map
- func (this *Engine) Context() *Context
- func (this *Engine) Exporting()
- func (this *Engine) Output() []string
- func (this *Engine) Result() interface{}
- func (this *Engine) RunCode(code string) error
- func (this *Engine) SetCache(cache bool)
- func (this *Engine) SetContext(context *Context)
- func (this *Engine) SetDBEnabled(b bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Agent *agents.AgentConfig // Agent
App *agents.AppConfig // App
Item *agents.Item // Item
TimeType string // 时间类型
TimePast teaconfigs.TimePast // 过去时间
TimeUnit teaconfigs.TimeUnit // 时间单位,用于分隔X轴
DayFrom string // 开始日期
DayTo string // 结束日期
}
脚本执行的上下文
Click to show internal directories.
Click to hide internal directories.