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 Arbitrary Local Names #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xmppjingle
Copy link

Allow Arbitrary Local Names when sending.
To avoid conflict or backward compatibility issues, a tuple format was added to send/ , allowing {Name, Key}.

@uuid0
Copy link
Member

uuid0 commented Jun 27, 2017

I've added a send/4 function to zabbix_sender.
You can now use zabbix_sender:send(Ref, Key, Value, [{local_name, LocalName}]) when using a named server's Ref or a Pid or zabbix_sender:send(singleton, Key, Value, [{local_name, LocalName}]) when using the singleton server.
Does that work for you?
If it does, I'll create a new version tomorrow.

The {LocalName, Key} variant of send/2 and send/3 could be added, but I wanted to keep the interface straight.

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.

2 participants