Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent runs recipes for specified plugins.
func (*Agent) RunMultiple ¶
RunMultiple executes multiple recipes.
type Config ¶
type Config struct {
ExtractorFactory *registry.ExtractorFactory
ProcessorFactory *registry.ProcessorFactory
SinkFactory *registry.SinkFactory
Monitor Monitor
Logger log.Logger
MaxRetries int
RetryInitialInterval time.Duration
StopOnSinkError bool
TimerFn TimerFn
}
type Monitor ¶
type Monitor interface {
RecordRun(run Run)
RecordPlugin(recipeName, pluginName, pluginType string, success bool)
}
Monitor is the interface for monitoring the agent.
type Run ¶
type Run struct {
Recipe recipe.Recipe `json:"recipe"`
Error error `json:"error"`
DurationInMs int `json:"duration_in_ms"`
RecordCount int `json:"record_count"`
Success bool `json:"success"`
}
Run contains the json data
type TaskType ¶
type TaskType string
TaskType is the type of task
const ( // TaskTypeExtract is the type of task that extracts a record TaskTypeExtract TaskType = "extract" // TaskTypeProcess is the type of task that processes a record TaskTypeProcess TaskType = "process" // TaskTypeSink is the type of task that sends a record to a sink TaskTypeSink TaskType = "sink" )
Click to show internal directories.
Click to hide internal directories.