Correlations: Add better handling to correlation type and update documentation (#109922)
* Add better type handling when correlation is created from provisioning and fix documentation * add external example * change error when deprecated key is used
This commit is contained in:
@@ -30,7 +30,7 @@ func (s CorrelationsService) createCorrelation(ctx context.Context, cmd CreateCo
|
||||
if correlation.Config.Type == CorrelationType("query") {
|
||||
correlation.Type = CorrelationType("query")
|
||||
} else if correlation.Config.Type != "" {
|
||||
return correlation, ErrInvalidConfigType
|
||||
return correlation, ErrConfigTypeDeprecated
|
||||
}
|
||||
|
||||
err := s.SQLStore.WithTransactionalDbSession(ctx, func(session *db.Session) error {
|
||||
|
||||
Reference in New Issue
Block a user