Documentation ¶
Index ¶
- func New(config *activity.Config) (activity.Activity, error)
- func NewActivity(md *activity.Metadata) activity.Activity
- func NewSlidingTimeWindow(function string, settings *window.Settings) (window.TimeWindow, error)
- func NewSlidingWindow(function string, settings *window.Settings) (window.Window, error)
- func NewTumblingTimeWindow(function string, settings *window.Settings) (window.TimeWindow, error)
- func NewTumblingWindow(function string, settings *window.Settings) (window.Window, error)
- type AggregateActivity
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewActivity ¶
NewActivity creates a new AppActivity
func NewSlidingTimeWindow ¶ added in v0.5.6
NewSlidingTimeWindow creates a new sliding time window, all time windows are managed externally and are progressed using the NextBlock() method
func NewSlidingWindow ¶ added in v0.5.6
func NewTumblingTimeWindow ¶ added in v0.5.6
NewTumblingTimeWindow creates a new tumbling time window, all time windows are managed externally and are progressed using the NextBlock() method
Types ¶
type AggregateActivity ¶
type AggregateActivity struct {
// contains filtered or unexported fields
}
AggregateActivity is an Activity that is used to Aggregate a message to the console
func (*AggregateActivity) Eval ¶
func (a *AggregateActivity) Eval(ctx activity.Context) (done bool, err error)
Eval implements api.Activity.Eval - Aggregates the Message
func (*AggregateActivity) Metadata ¶
func (a *AggregateActivity) Metadata() *activity.Metadata
Metadata returns the activity's metadata
type Settings ¶ added in v0.5.6
type Settings struct { Function string `md:"function,required,allowed(avg,sum,min,max,count)"` WindowType string `md:"windowType,required,allowed(tumbling,sliding,timeTumbling,timeSliding)"` WindowSize int `md:"windowSize,required"` ProceedOnlyOnEmit bool Resolution int AdditionalSettings map[string]string }
we can generate json from this! - we could also create a "validate-able" object from this
Click to show internal directories.
Click to hide internal directories.