velodrome/transform/plugins/event_counter.go
func (e *EventCounterPlugin) ReceiveIssueEvent(event sql.IssueEvent) []Point {
	var label string
	if event.Label != nil {
		label = *event.Label
	}

	if !e.matcher.Match(event.Event, label) {
		return nil
	}
	return []Point{
		{
			Values: map[string]interface{}{"event": 1},
			Date:   event.EventCreatedAt,
		},
	}
}
func (e *EventCounterPlugin) ReceiveIssueEvent(event sql.IssueEvent) []Point {
	var label string
	if event.Label != nil {
		label = *event.Label
	}

	if !e.matcher.Match(event.Event, label) {
		return nil
	}
	return []Point{
		{
			Values: map[string]interface{}{"event": 1},
			Date:   event.EventCreatedAt,
		},
	}
}
func ( e * EventCounterPlugin ) ReceiveIssueEvent ( event sql . IssueEvent ) [ ] Point { var label string if event . Label != nil { label = * event . Label } if ! e . matcher . Match ( event . Event , label ) { return nil } return [ ] Point { { Values : map [ string ] interface { } { " " : 1 } , Date : event . EventCreatedAt , } , } }
// ReceiveIssueEvent adds issue events to InfluxDB
ReceiveIssueEvent adds issue events to InfluxDB