func NewNoisyProcessEvent(count uint64,
	threshold int64,
	controlPeriod time.Duration,
	discardedUntil time.Time,
	process *model.ProcessCacheEntry,
	resolvers *Resolvers,
	timestamp time.Time) (*rules.Rule, *CustomEvent) {
	return newRule(&rules.RuleDefinition{
			ID: NoisyProcessRuleID,
		}), newCustomEvent(model.CustomNoisyProcessEventType, NoisyProcessEvent{
			Timestamp:      timestamp,
			Count:          count,
			Threshold:      threshold,
			ControlPeriod:  controlPeriod,
			DiscardedUntil: discardedUntil,
			Process:        newProcessContextSerializer(process, nil, resolvers),
		}.MarshalJSON)
}
// NewNoisyProcessEvent returns the rule and a populated custom event for a noisy_process event
NewNoisyProcessEvent returns the rule and a populated custom event for a noisy_process event
// NewNoisyProcessEvent returns the rule and a populated custom event for a noisy_process event
func NewNoisyProcessEvent(count uint64,
	threshold int64,
	controlPeriod time.Duration,
	discardedUntil time.Time,
	process *model.ProcessCacheEntry,
	resolvers *Resolvers,
	timestamp time.Time) (*rules.Rule, *CustomEvent) {
	return newRule(&rules.RuleDefinition{
			ID: NoisyProcessRuleID,
		}), newCustomEvent(model.CustomNoisyProcessEventType, NoisyProcessEvent{
			Timestamp:      timestamp,
			Count:          count,
			Threshold:      threshold,
			ControlPeriod:  controlPeriod,
			DiscardedUntil: discardedUntil,
			Process:        newProcessContextSerializer(process, nil, resolvers),
		}.MarshalJSON)
}
func NewNoisyProcessEvent ( count uint64 , threshold int64 , controlPeriod time . Duration , discardedUntil time . Time , process * model . ProcessCacheEntry , resolvers * Resolvers , timestamp time . Time ) ( * rules . Rule , * CustomEvent ) { return newRule ( & rules . RuleDefinition { ID : NoisyProcessRuleID , } ) , newCustomEvent ( model . CustomNoisyProcessEventType , NoisyProcessEvent { Timestamp : timestamp , Count : count , Threshold : threshold , ControlPeriod : controlPeriod , DiscardedUntil : discardedUntil , Process : newProcessContextSerializer ( process , nil , resolvers ) , } . MarshalJSON ) }
NewNoisyProcessEvent returns the rule and a populated custom event for a noisy_process event
NewNoisyProcessEvent returns the rule and a populated custom event for a noisy_process event