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

Allow routes to override variables taken from config.json #16

Open
ajxchapman opened this issue Mar 6, 2021 · 1 comment
Open

Allow routes to override variables taken from config.json #16

ajxchapman opened this issue Mar 6, 2021 · 1 comment

Comments

@ajxchapman
Copy link
Owner

Allow individual routes to override the variables defined in config.json, this could help with things like allowing different webhooks endpoints based on the route, rather than the generic definition from config.json

@ajxchapman
Copy link
Owner Author

This can already be achieved by passing arguments to scripts using the kwargs definition, e.g.

"action" : {
  "module" : "./scripts/slack_alert_middleware/slack_alert.py",
  "function" : "http_alert",
  "kwargs" : {
    "webhook" : "{{slack_webhook_url}}"
  }
}

Is there any benefit of implementing an additional override?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant