-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check if monitor accepts endpoints before setting host/port
Only select smart-agent monitors can be created via endpoints. This is defined as a struct tag on the monitor configs "acceptsEndpoints". In the case where we attempt to set Host/Port on a monitor that has it's "acceptsEndpoints" value set to false, an error occurs and we do not create the monitor. This change would create the monitor but avoid setting the Host/Port fields. This allows the receiver creator to create any smart-agent monitor.
- Loading branch information
Mark Stumpf
committed
Jan 18, 2022
1 parent
1f9a135
commit 6e0ad30
Showing
4 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters