MCPcopy Create free account
hub / github.com/TalkingData/owl / GetAllActions

Method GetAllActions

controller/mysql.go:118–125  ·  view source on GitHub ↗
(strategy_id int)

Source from the content-addressed store, hash-verified

116}
117
118func (this *db) GetAllActions(strategy_id int) []*types.Action {
119 actions := []*types.Action{}
120 if err := this.Select(&actions, "SELECT * FROM `action` WHERE `strategy_id` = ?", strategy_id); err != nil {
121 lg.Error(err.Error())
122 return nil
123 }
124 return actions
125}
126
127func (this *db) CreateStrategyEvent(strategy_event *types.StrategyEvent, trigger_events map[string]*types.TriggerEvent) (int64, error) {
128 tx, err := this.Begin()

Callers 1

doAlarmActionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected