{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2837","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2837/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2837/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2837/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2837","id":174758190,"number":2837,"title":"datadog_event module does not correctly set host for event","user":{"login":"mwild1","id":24315,"avatar_url":"https://avatars.githubusercontent.com/u/24315?v=3","gravatar_id":"","url":"https://api.github.com/users/mwild1","html_url":"https://github.com/mwild1","followers_url":"https://api.github.com/users/mwild1/followers","following_url":"https://api.github.com/users/mwild1/following{/other_user}","gists_url":"https://api.github.com/users/mwild1/gists{/gist_id}","starred_url":"https://api.github.com/users/mwild1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwild1/subscriptions","organizations_url":"https://api.github.com/users/mwild1/orgs","repos_url":"https://api.github.com/users/mwild1/repos","events_url":"https://api.github.com/users/mwild1/events{/privacy}","received_events_url":"https://api.github.com/users/mwild1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_2.1","name":"affects_2.1","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-02T13:20:34Z","updated_at":"2016-10-26T08:34:46Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\ndatadog_event\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.1.0\r\n```\r\n\r\n##### SUMMARY\r\nThe `datadog_event` module does not allow correctly setting the host to be associated with events. The hostname should be passed to Datadog using the 'host' parameter in their API.\r\n\r\nThe documentation for this module shows setting a tag called 'host', which does not achieve the same thing.\r\n\r\n##### STEPS TO REPRODUCE\r\nUse the `datadog_event` module to submit an event to Datadog indicating that an Ansible run has completed, for example. As indicated in the documentation, set a host tag, e.g. `tags=\"host:example.com\"`\r\n\r\nIn Datadog, verify that the event appears in the event stream. And shows the host tag that was set. Now search for `host:example.com`. The event just submitted does not appear, because it doesn't match the search (!).\r\n\r\nThis is certainly an confusing quirk in the Datadog interface, but their support team insist that the correct way to submit a host tag is using the 'host' parameter in their API, which this Ansible module does not currently support.\r\n\r\n##### EXPECTED RESULTS\r\nI would expect the submitted Datadog event to be correctly associated with the host. \r\n\r\nThe problem is a combination of two things - primarily this module's lack of support for setting the 'host' parameter in the call to Datadog's API. The second is the misleading documentation, which shows setting a 'host' tag using the 'tags' parameter.\r\n\r\nAnd this probably came about because the Datadog documentation for this API method does not demonstrate use of the 'host' parameter in the example code."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/256283545","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2837#issuecomment-256283545","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2837","id":256283545,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T08:34:46Z","updated_at":"2016-10-26T08:34:46Z","body":"@n0ts, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}