{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/timelion/issues/147","repository_url":"https://api.github.com/repos/elastic/timelion","labels_url":"https://api.github.com/repos/elastic/timelion/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/elastic/timelion/issues/147/comments","events_url":"https://api.github.com/repos/elastic/timelion/issues/147/events","html_url":"https://github.com/elastic/timelion/issues/147","id":163225187,"number":147,"title":"Divide multi-valued seriesList by another multi-valued seriesList ","user":{"login":"tlktoash","id":1824079,"avatar_url":"https://avatars.githubusercontent.com/u/1824079?v=3","gravatar_id":"","url":"https://api.github.com/users/tlktoash","html_url":"https://github.com/tlktoash","followers_url":"https://api.github.com/users/tlktoash/followers","following_url":"https://api.github.com/users/tlktoash/following{/other_user}","gists_url":"https://api.github.com/users/tlktoash/gists{/gist_id}","starred_url":"https://api.github.com/users/tlktoash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlktoash/subscriptions","organizations_url":"https://api.github.com/users/tlktoash/orgs","repos_url":"https://api.github.com/users/tlktoash/repos","events_url":"https://api.github.com/users/tlktoash/events{/privacy}","received_events_url":"https://api.github.com/users/tlktoash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-30T17:50:56Z","updated_at":"2016-07-01T22:27:21Z","closed_at":null,"body":"Hi i am getting build data from jenkins and dumping into elastic to generate code coverage using awesome timlion plugin for kibana.  my document has following data structure . Where product has different module with name. Now want to get code coverage for each module and sum it up for each product. I am using codecoverageline and total line to get right code coverage %. I am using fit(carry) function to carry previous value if build data is not available for module at particular day. I was able to achieve right code coverage % my query look like this . But i have to do this for each modules to get right code coverage for product. Is there any way i can use field: name in query so it group by module name so i don't have to do for each module. Any help or pointer will be really appropriated. I love timlion it's awesome!!\r\n\r\n`(.es(metric='sum:codecoverageline' q='XXX.Web.Build.R2016').fit(carry).divide(.es(metric='sum:totalline' q='XXX.Web.Build.R2016').fit(carry))).multiply(100) `\r\n\r\n\r\n\r\n```\r\n{\r\n  \"_index\": \"apd\",\r\n  \"_type\": \"codecoverage\",\r\n  \"_id\": \"AVWiVxrVLi1D2E554p1l\",\r\n  \"_score\": 4.0385523,\r\n  \"_source\": {\r\n    \"company\": \"XXXX\",\r\n    \"department\": \"XXXX\",\r\n    \"product\": \"XXX\",\r\n    \"name\": \"XXWeb.Build.R2016\",\r\n    \"buildnumber\": 36,\r\n    \"buildtimestamp\": \"2016-05-12T10:38:00.000Z\",\r\n    \"result\": \"SUCCESS\",\r\n    \"buiildtriggerby\": \"XXX\",\r\n    \"checkinfiles\": [\r\n      \"XX\"\r\n    ],\r\n    \"checkinauthors\": \"XXX\",\r\n    \"checkincomments\": \"Modified implementation for Req Checkbox\",\r\n    \"totalline\": 622,\r\n    \"codecoverageline\": 502,\r\n    \"codecoverageper\": 80.7074\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/timelion/issues/comments/230060636","html_url":"https://github.com/elastic/timelion/issues/147#issuecomment-230060636","issue_url":"https://api.github.com/repos/elastic/timelion/issues/147","id":230060636,"user":{"login":"leeway23","id":17620216,"avatar_url":"https://avatars.githubusercontent.com/u/17620216?v=3","gravatar_id":"","url":"https://api.github.com/users/leeway23","html_url":"https://github.com/leeway23","followers_url":"https://api.github.com/users/leeway23/followers","following_url":"https://api.github.com/users/leeway23/following{/other_user}","gists_url":"https://api.github.com/users/leeway23/gists{/gist_id}","starred_url":"https://api.github.com/users/leeway23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeway23/subscriptions","organizations_url":"https://api.github.com/users/leeway23/orgs","repos_url":"https://api.github.com/users/leeway23/repos","events_url":"https://api.github.com/users/leeway23/events{/privacy}","received_events_url":"https://api.github.com/users/leeway23/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T22:27:21Z","updated_at":"2016-07-01T22:27:21Z","body":"+1 unfortunately I can not use timelion for my usecases without this functionality e.g.: .es(split=id:0).divide(.es(split=id:0, metric=sum:fieldname)) . Thanks for having a serious look guys ;)"}}
{"actor":{"display_login":"leeway23"}}