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
SinkBatchSize int
DryRun bool
RecordLimit int
}
type Monitor ¶
type Monitor interface {
RecordRun(ctx context.Context, run Run)
RecordPlugin(ctx context.Context, pluginInfo PluginInfo)
RecordSinkRetryCount(ctx context.Context, pluginInfo PluginInfo)
}
Monitor is the interface for monitoring the agent.
type PluginInfo ¶ added in v0.9.1
type Run ¶
type Run struct {
Recipe recipe.Recipe `json:"recipe"`
Error error `json:"error"`
DurationInMs int `json:"duration_in_ms"`
ExtractorRetries int `json:"extractor_retries"`
RecordsExtracted int `json:"records_extracted"`
RecordCount int `json:"record_count"`
Success bool `json:"success"`
EntityTypes map[string]int `json:"entity_types,omitempty"`
DryRun bool `json:"dry_run,omitempty"`
}
Run contains the json data
Click to show internal directories.
Click to hide internal directories.