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

Remove multiple endpoints support #107

Merged
merged 1 commit into from Aug 23, 2016
Merged

Conversation

degemer
Copy link
Member

@degemer degemer commented Aug 19, 2016

This library exists to interact with the API (mute monitors, create
dashboards, ...), and for most of these actions it doesn't make sense to
send them to multiple accounts.

It makes sense for metrics/events/service_checks, and for this usage
dogstatsd-ruby makes more sense. (as it uses the forwarder included with
the agent which can easily send to multiple accounts)

@@ -16,7 +16,7 @@ class Client
# [[api_key1, application_key1], [api_key2, application_key2]]
# Hash to be able to specify different endpoints:
# {'https://app.example.com' => [[api_key1, application_key1], [api_key2, application_key2]]}
def initialize(api_key, application_key=nil, host=nil, device=nil, silent=true, timeout=nil, extra_endpoints=nil)
def initialize(api_key, application_key=nil, host=nil, device=nil, silent=true, timeout=nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comments above should be updated to remove any mention of extra_endpoints.

@yannmh
Copy link
Member

yannmh commented Aug 23, 2016

LGTM!

This library exists to interact with the API (mute monitors, create
dashboards, ...), and for most of these actions it doesn't make sense to
send them to multiple accounts.

It makes sense for metrics/events/service_checks, and for this usage
dogstatsd-ruby makes more sense. (as it uses the forwarder included with
the agent which can easily send to multiple accounts)
@degemer degemer force-pushed the quentin/remove-multi-endpoints branch from c189671 to f347d48 Compare August 23, 2016 15:37
@degemer degemer merged commit ec8cd90 into master Aug 23, 2016
@degemer degemer deleted the quentin/remove-multi-endpoints branch August 23, 2016 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants