Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if monitor accepts endpoints before setting host/port #1107

Merged
merged 1 commit into from
Jan 19, 2022

Commits on Jan 19, 2022

  1. 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.
    Mark Stumpf committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    a7b1fdc View commit details
    Browse the repository at this point in the history