{"action":"created","issue":{"url":"https://api.github.com/repos/certtools/intelmq/issues/349","labels_url":"https://api.github.com/repos/certtools/intelmq/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/certtools/intelmq/issues/349/comments","events_url":"https://api.github.com/repos/certtools/intelmq/issues/349/events","html_url":"https://github.com/certtools/intelmq/pull/349","id":109304930,"number":349,"title":"time-based filtering","user":{"login":"robcza","id":11228982,"avatar_url":"https://avatars.githubusercontent.com/u/11228982?v=3","gravatar_id":"","url":"https://api.github.com/users/robcza","html_url":"https://github.com/robcza","followers_url":"https://api.github.com/users/robcza/followers","following_url":"https://api.github.com/users/robcza/following{/other_user}","gists_url":"https://api.github.com/users/robcza/gists{/gist_id}","starred_url":"https://api.github.com/users/robcza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robcza/subscriptions","organizations_url":"https://api.github.com/users/robcza/orgs","repos_url":"https://api.github.com/users/robcza/repos","events_url":"https://api.github.com/users/robcza/events{/privacy}","received_events_url":"https://api.github.com/users/robcza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/certtools/intelmq/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/certtools/intelmq/milestones/2","html_url":"https://github.com/certtools/intelmq/milestones/Release%201%20-%20v1.0","labels_url":"https://api.github.com/repos/certtools/intelmq/milestones/2/labels","id":719078,"number":2,"title":"Release 1 - v1.0","description":"Complete version 1.0","creator":{"login":"SYNchroACK","id":4184292,"avatar_url":"https://avatars.githubusercontent.com/u/4184292?v=3","gravatar_id":"","url":"https://api.github.com/users/SYNchroACK","html_url":"https://github.com/SYNchroACK","followers_url":"https://api.github.com/users/SYNchroACK/followers","following_url":"https://api.github.com/users/SYNchroACK/following{/other_user}","gists_url":"https://api.github.com/users/SYNchroACK/gists{/gist_id}","starred_url":"https://api.github.com/users/SYNchroACK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYNchroACK/subscriptions","organizations_url":"https://api.github.com/users/SYNchroACK/orgs","repos_url":"https://api.github.com/users/SYNchroACK/repos","events_url":"https://api.github.com/users/SYNchroACK/events{/privacy}","received_events_url":"https://api.github.com/users/SYNchroACK/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":186,"state":"open","created_at":"2014-07-12T18:19:52Z","updated_at":"2015-10-28T21:02:28Z","due_on":"2015-11-01T00:00:00Z","closed_at":null},"comments":10,"created_at":"2015-10-01T13:59:23Z","updated_at":"2015-10-29T14:08:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/certtools/intelmq/pulls/349","html_url":"https://github.com/certtools/intelmq/pull/349","diff_url":"https://github.com/certtools/intelmq/pull/349.diff","patch_url":"https://github.com/certtools/intelmq/pull/349.patch"},"body":"filter expert modification and test, as discussed previously in here: https://github.com/certtools/intelmq/issues/320\r\n\r\nParameters for time based filtering:\r\n* not_before - events before this time will be dropped\r\n* not_after - events after this time will be dropped\r\n\r\nBoth parameters accept string values describing absolute or relative time:\r\n* absolute\r\n * basically anything parsable by datetime parser, eg. \"2015-09-012T06:22:11+00:00\"\r\n * time.source taken from the event will be compared to this value to decide the filter behavior\r\n* relative\r\n * accepted string formatted like this \"<integer> <epoch>\", where epoch could be any of following strings (could optionally end with trailing 's'): hour, day, week, month, year\r\n * time.source taken from the event will be compared to the value (now - relative) to decide the filter behavior\r\n\r\nExamples of time filter definition:\r\n* ```\"not_before\" : \"2015-09-012T06:22:11+00:00\"``` events older than the specified time will be dropped\r\n* ```\"not_after\" : \"6 months\"``` just events older than 6 months will be passed through the pipeline"},"comment":{"url":"https://api.github.com/repos/certtools/intelmq/issues/comments/152191782","html_url":"https://github.com/certtools/intelmq/pull/349#issuecomment-152191782","issue_url":"https://api.github.com/repos/certtools/intelmq/issues/349","id":152191782,"user":{"login":"robcza","id":11228982,"avatar_url":"https://avatars.githubusercontent.com/u/11228982?v=3","gravatar_id":"","url":"https://api.github.com/users/robcza","html_url":"https://github.com/robcza","followers_url":"https://api.github.com/users/robcza/followers","following_url":"https://api.github.com/users/robcza/following{/other_user}","gists_url":"https://api.github.com/users/robcza/gists{/gist_id}","starred_url":"https://api.github.com/users/robcza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robcza/subscriptions","organizations_url":"https://api.github.com/users/robcza/orgs","repos_url":"https://api.github.com/users/robcza/repos","events_url":"https://api.github.com/users/robcza/events{/privacy}","received_events_url":"https://api.github.com/users/robcza/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T14:08:16Z","updated_at":"2015-10-29T14:08:16Z","body":"Bah! :( locally the tests go through n1. Could there be an issue with the same class defined in multiple test scripts? Seemed to me as a nice way to describe different cases."}}