Skip to content

Commit cd8df3b

Browse files
committed
Document the requirement to match investigation name and directory
Backplane takes the investigation name and looks for a directory with the same name to pull the metadata.yaml
1 parent bff4251 commit cd8df3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/investigations/mapping/mapping.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import (
1212
)
1313

1414
// GetInvestigation will return the investigation function for the identified alert
15+
//
16+
// Please note that when adding an investigation the name and the directory need to be the same,
17+
// so that backplane-api can fetch the metadata.yaml
1518
func GetInvestigation(alertTitle string) *investigation.Investigation {
1619
// We currently map to the alert by using the title, we should use the name in the alert note in the future.
1720
// This currently isn't feasible yet, as CPD's alertmanager doesn't allow for the field to exist.

0 commit comments

Comments
 (0)