{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1239","labels_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1239/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1239/comments","events_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1239/events","html_url":"https://github.com/sensu/sensu-community-plugins/pull/1239","id":111210920,"number":1239,"title":"Add -x option to graphite.rb plugin to allow complex queries with graphite functions","user":{"login":"jennytoo","id":518343,"avatar_url":"https://avatars.githubusercontent.com/u/518343?v=3","gravatar_id":"","url":"https://api.github.com/users/jennytoo","html_url":"https://github.com/jennytoo","followers_url":"https://api.github.com/users/jennytoo/followers","following_url":"https://api.github.com/users/jennytoo/following{/other_user}","gists_url":"https://api.github.com/users/jennytoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jennytoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennytoo/subscriptions","organizations_url":"https://api.github.com/users/jennytoo/orgs","repos_url":"https://api.github.com/users/jennytoo/repos","events_url":"https://api.github.com/users/jennytoo/events{/privacy}","received_events_url":"https://api.github.com/users/jennytoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-13T15:55:03Z","updated_at":"2015-10-13T16:38:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sensu/sensu-community-plugins/pulls/1239","html_url":"https://github.com/sensu/sensu-community-plugins/pull/1239","diff_url":"https://github.com/sensu/sensu-community-plugins/pull/1239.diff","patch_url":"https://github.com/sensu/sensu-community-plugins/pull/1239.patch"},"body":"This is a simple patch which adds a new option, -x / --complex_target, which disables splitting the target on commas, thus allowing complex targets which contain functions with multiple parameters.\r\n\r\nA censored example showing how useSeriesAbove can be used to only alert when a server has been up at least 1200 seconds:\r\n\r\n```\r\nplugins/graphite/graphite.rb -h graphite.example -t 'nonNegativeDerivative(useSeriesAbove(example.server*.uptime, 1200, \"uptime\", \"requests\"))' -a 1,1 -g -x\r\nGraphite CRITICAL: The average value of metric nonNegativeDerivative(example.server1.requests) is 372162.7358490566 that is greater than allowed average of 1\r\nThe average value of metric nonNegativeDerivative(example.server2.requests) is 220345.547008547 that is greater than allowed average of 1\r\n```"},"comment":{"url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/comments/147770915","html_url":"https://github.com/sensu/sensu-community-plugins/pull/1239#issuecomment-147770915","issue_url":"https://api.github.com/repos/sensu/sensu-community-plugins/issues/1239","id":147770915,"user":{"login":"jennytoo","id":518343,"avatar_url":"https://avatars.githubusercontent.com/u/518343?v=3","gravatar_id":"","url":"https://api.github.com/users/jennytoo","html_url":"https://github.com/jennytoo","followers_url":"https://api.github.com/users/jennytoo/followers","following_url":"https://api.github.com/users/jennytoo/following{/other_user}","gists_url":"https://api.github.com/users/jennytoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jennytoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennytoo/subscriptions","organizations_url":"https://api.github.com/users/jennytoo/orgs","repos_url":"https://api.github.com/users/jennytoo/repos","events_url":"https://api.github.com/users/jennytoo/events{/privacy}","received_events_url":"https://api.github.com/users/jennytoo/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T16:38:03Z","updated_at":"2015-10-13T16:38:03Z","body":"It turns out someone else also opened a pull request, https://github.com/sensu/sensu-community-plugins/pull/1228, to fix the rubocop errors but it hasn't been merged yet."}}