Skip to content

Commit

Permalink
[process-agent] Refactor Check interface (#15063)
Browse files Browse the repository at this point in the history
* [process-agent] Refactor Check interface

- Refactors Check interface to consolidate CheckWithRealTime features
- This will simplify integration with components in the future PRs since it eliminates casts

* Address feedback from @just-chillin
  • Loading branch information
xornivore authored and val06 committed Jan 19, 2023
1 parent 97482a2 commit 5865ac5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/process/checks/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,15 @@ func RTName(checkName string) string {
return ""
}
}

// RTName returns the name of the corresponding realtime check
func RTName(checkName string) string {
switch checkName {
case ProcessCheckName:
return RTProcessCheckName
case ContainerCheckName:
return RTContainerCheckName
default:
return ""
}
}

0 comments on commit 5865ac5

Please sign in to comment.