Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaTypes = []SchemaType{ PROTOBUF, CUSTOM, }
Functions ¶
This section is empty.
Types ¶
type DatetimeRange ¶
type PrintableTopo ¶
type RestartStrategy ¶
type Rule ¶
type Rule struct {
Triggered bool `json:"triggered"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"` // The display name of a rule
Sql string `json:"sql,omitempty"`
Graph *RuleGraph `json:"graph,omitempty"`
Actions []map[string]interface{} `json:"actions,omitempty"`
Options *RuleOption `json:"options,omitempty"`
}
Rule the definition of the business logic Sql and Graph are mutually exclusive, at least one of them should be set
func GetDefaultRule ¶
func (*Rule) IsLongRunningScheduleRule ¶
func (*Rule) IsScheduleRule ¶
type RuleGraph ¶
type RuleGraph struct {
Nodes map[string]*GraphNode `json:"nodes"`
Topo *PrintableTopo `json:"topo"`
}
type RuleOption ¶
type RuleOption struct {
Debug bool `json:"debug" yaml:"debug"`
LogFilename string `json:"logFilename" yaml:"logFilename"`
IsEventTime bool `json:"isEventTime" yaml:"isEventTime"`
LateTol int64 `json:"lateTolerance" yaml:"lateTolerance"`
Concurrency int `json:"concurrency" yaml:"concurrency"`
BufferLength int `json:"bufferLength" yaml:"bufferLength"`
SendMetaToSink bool `json:"sendMetaToSink" yaml:"sendMetaToSink"`
SendError bool `json:"sendError" yaml:"sendError"`
Qos Qos `json:"qos" yaml:"qos"`
CheckpointInterval int `json:"checkpointInterval" yaml:"checkpointInterval"`
Restart *RestartStrategy `json:"restartStrategy" yaml:"restartStrategy"`
Cron string `json:"cron" yaml:"cron"`
Duration string `json:"duration" yaml:"duration"`
CronDatetimeRange []DatetimeRange `json:"cronDatetimeRange" yaml:"cronDatetimeRange"`
}
type SchemaType ¶
type SchemaType string
const ( PROTOBUF SchemaType = "protobuf" CUSTOM SchemaType = "custom" )
type SourceMeta ¶
type SourceMeta struct {
SourceName string `json:"sourceName"` // the name of the stream or table
SourceType string `json:"sourceType"` // stream or table
}
SourceMeta is the metadata of a source node. It describes what existed stream/table to refer to. It is part of the Props in the GraphNode and it is optional
Click to show internal directories.
Click to hide internal directories.