-
Notifications
You must be signed in to change notification settings - Fork 212
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
Add optional base_url configuration #366
Conversation
Thank you for submitting this! However, I think I want to go a slightly different direction. Rather than having folks set the URLs directly I think we should just provide a From a user perspective, do you think that would be a cleaner approach? |
Hi @stmcallister, thanks for looking into this. What we're trying to do here is actually setting a totally custom proxy endpoint, running internally in our infrastructure. We're using these custom endpoints to cache http GETs therefore reducing the throughput to the 3rd party providers (pagerduty in this case) and reduce the chances of hitting 3rd party providers rate limiting throttling. Of course, as you mention it can be used to force traffic to a specific pagerduty "service_region" endpoint, but we need to be able to set "any" configurable endpoint instead of just a subset of them managed by the provider itself. |
@stmcallister any updates? |
Ah, I hadn't thought of that scenario. 🤔 Let me think about this one and talk to a few folks. |
@stmcallister this PR now conflicts with the |
@busatol It does. I feel the How about we name your field something like |
18b90f6
to
ee6ea05
Compare
@stmcallister updated. I added the field |
@busatol Thanks for making the naming change. Looks like this branch is still conflicting with master. Will you merge with the latest master and fix the conflicts? Once I can test it successfully i'll approve and merge. |
@stmcallister done. The PR is up to date with master 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! thanks for fixing the merge conflicts! 🎉
This pr adds the optional
base_url
configuration argument that is passed to the API client.