{"action":"created","comment":{"url":"https://api.github.com/repos/DataDog/documentation/pulls/comments/210767406","pull_request_review_id":147054507,"id":210767406,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDc2NzQwNg==","diff_hunk":"@@ -287,6 +287,18 @@ Delta value between points for a given metric\n \n ## Smoothing\n \n+### autosmooth()\n+\n+Automatically removes noise while preserving the trend of the time series.\n+\n+The `autosmooth()` function applies a moving average with an automatically selected span. It smoothes a time series while preserving its trend. In this example, the function chooses the optimal span to smooth the time series:\n+\n+{{< img src=\"graphing/miscellaneous/functions/autosmooth_illustration.png\" alt=\"autosmooth illustration\" responsive=\"true\" style=\"width:80%;\">}}\n+\n+When used on a `group by` query (e.g. `avg by`), the same span is applied on all the time series. If used on several metrics in the same graph, different spans could be selected to optimally smooth each one of the metric time series.\n+\n+The algorithm is inspired by the [ASAP algorithm][8] - you can read more about it in this blog post. ","path":"content/graphing/miscellaneous/functions.md","position":14,"original_position":14,"commit_id":"be96c69c8ccc16eeebda52bb047698b73d14c4be","original_commit_id":"be96c69c8ccc16eeebda52bb047698b73d14c4be","user":{"login":"StephenKappel","id":6488220,"node_id":"MDQ6VXNlcjY0ODgyMjA=","avatar_url":"https://avatars1.githubusercontent.com/u/6488220?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenKappel","html_url":"https://github.com/StephenKappel","followers_url":"https://api.github.com/users/StephenKappel/followers","following_url":"https://api.github.com/users/StephenKappel/following{/other_user}","gists_url":"https://api.github.com/users/StephenKappel/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenKappel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenKappel/subscriptions","organizations_url":"https://api.github.com/users/StephenKappel/orgs","repos_url":"https://api.github.com/users/StephenKappel/repos","events_url":"https://api.github.com/users/StephenKappel/events{/privacy}","received_events_url":"https://api.github.com/users/StephenKappel/received_events","type":"User","site_admin":false},"body":"I misunderstood originally. This makes more sense now!","created_at":"2018-08-16T23:09:07Z","updated_at":"2018-08-16T23:09:08Z","html_url":"https://github.com/DataDog/documentation/pull/2944#discussion_r210767406","pull_request_url":"https://api.github.com/repos/DataDog/documentation/pulls/2944","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DataDog/documentation/pulls/comments/210767406"},"html":{"href":"https://github.com/DataDog/documentation/pull/2944#discussion_r210767406"},"pull_request":{"href":"https://api.github.com/repos/DataDog/documentation/pulls/2944"}},"in_reply_to_id":210749145},"pull_request":{"url":"https://api.github.com/repos/DataDog/documentation/pulls/2944","id":207034872,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MDM0ODcy","html_url":"https://github.com/DataDog/documentation/pull/2944","diff_url":"https://github.com/DataDog/documentation/pull/2944.diff","patch_url":"https://github.com/DataDog/documentation/pull/2944.patch","issue_url":"https://api.github.com/repos/DataDog/documentation/issues/2944","number":2944,"state":"open","locked":false,"title":"add autosmooth documentation","user":{"login":"byassine93","id":22733452,"node_id":"MDQ6VXNlcjIyNzMzNDUy","avatar_url":"https://avatars1.githubusercontent.com/u/22733452?v=4","gravatar_id":"","url":"https://api.github.com/users/byassine93","html_url":"https://github.com/byassine93","followers_url":"https://api.github.com/users/byassine93/followers","following_url":"https://api.github.com/users/byassine93/following{/other_user}","gists_url":"https://api.github.com/users/byassine93/gists{/gist_id}","starred_url":"https://api.github.com/users/byassine93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byassine93/subscriptions","organizations_url":"https://api.github.com/users/byassine93/orgs","repos_url":"https://api.github.com/users/byassine93/repos","events_url":"https://api.github.com/users/byassine93/events{/privacy}","received_events_url":"https://api.github.com/users/byassine93/received_events","type":"User","site_admin":false},"body":"<!-- *Note: Please remember to review the Datadog Documentation [Contribution Guidelines](https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md) if you have not yet done so.* -->\r\n\r\n### What does this PR do?\r\n<!-- A brief description of the change being made with this pull request.-->\r\nAdds a description to the autosmooth function created in prod (enabled only for Datadog for now).\r\n\r\n### Motivation\r\n<!-- What inspired you to submit this pull request?-->\r\n[Release of the algorithm to prod](https://trello.com/c/w5aTMqr9/2845-implement-asap-in-dogweb)\r\n[Trello Card ](https://trello.com/c/clqwJi4C/2872-blocked-on-auto-smoother-release-add-auto-smoother-to-documentation)\r\n\r\n### Preview link\r\n<!-- Impacted pages preview links-->\r\n[Preview](https://docs-staging.datadoghq.com/yassine.benazzou/add-autosmooth-documentation/)\r\n\r\n### Additional Notes\r\n<!-- Anything else we should know when reviewing?-->\r\n","created_at":"2018-08-08T14:50:28Z","updated_at":"2018-08-16T23:09:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2373dfe4fe3eb7eefd54a585f8def8ffb37b1c88","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mstbbs","id":20482473,"node_id":"MDQ6VXNlcjIwNDgyNDcz","avatar_url":"https://avatars3.githubusercontent.com/u/20482473?v=4","gravatar_id":"","url":"https://api.github.com/users/mstbbs","html_url":"https://github.com/mstbbs","followers_url":"https://api.github.com/users/mstbbs/followers","following_url":"https://api.github.com/users/mstbbs/following{/other_user}","gists_url":"https://api.github.com/users/mstbbs/gists{/gist_id}","starred_url":"https://api.github.com/users/mstbbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstbbs/subscriptions","organizations_url":"https://api.github.com/users/mstbbs/orgs","repos_url":"https://api.github.com/users/mstbbs/repos","events_url":"https://api.github.com/users/mstbbs/events{/privacy}","received_events_url":"https://api.github.com/users/mstbbs/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":794806364,"node_id":"MDU6TGFiZWw3OTQ4MDYzNjQ=","url":"https://api.github.com/repos/DataDog/documentation/labels/App","name":"App","color":"d4c5f9","default":false},{"id":955348451,"node_id":"MDU6TGFiZWw5NTUzNDg0NTE=","url":"https://api.github.com/repos/DataDog/documentation/labels/Do%20Not%20Merge","name":"Do Not Merge","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/DataDog/documentation/pulls/2944/commits","review_comments_url":"https://api.github.com/repos/DataDog/documentation/pulls/2944/comments","review_comment_url":"https://api.github.com/repos/DataDog/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataDog/documentation/issues/2944/comments","statuses_url":"https://api.github.com/repos/DataDog/documentation/statuses/be96c69c8ccc16eeebda52bb047698b73d14c4be","head":{"label":"DataDog:yassine.benazzou/add-autosmooth-documentation","ref":"yassine.benazzou/add-autosmooth-documentation","sha":"be96c69c8ccc16eeebda52bb047698b73d14c4be","user":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":2967233,"node_id":"MDEwOlJlcG9zaXRvcnkyOTY3MjMz","name":"documentation","full_name":"DataDog/documentation","owner":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataDog/documentation","description":"The source for Datadog's documentation site.","fork":false,"url":"https://api.github.com/repos/DataDog/documentation","forks_url":"https://api.github.com/repos/DataDog/documentation/forks","keys_url":"https://api.github.com/repos/DataDog/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/documentation/teams","hooks_url":"https://api.github.com/repos/DataDog/documentation/hooks","issue_events_url":"https://api.github.com/repos/DataDog/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/documentation/events","assignees_url":"https://api.github.com/repos/DataDog/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/documentation/tags","blobs_url":"https://api.github.com/repos/DataDog/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/documentation/languages","stargazers_url":"https://api.github.com/repos/DataDog/documentation/stargazers","contributors_url":"https://api.github.com/repos/DataDog/documentation/contributors","subscribers_url":"https://api.github.com/repos/DataDog/documentation/subscribers","subscription_url":"https://api.github.com/repos/DataDog/documentation/subscription","commits_url":"https://api.github.com/repos/DataDog/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/documentation/merges","archive_url":"https://api.github.com/repos/DataDog/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/documentation/downloads","issues_url":"https://api.github.com/repos/DataDog/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/documentation/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/documentation/deployments","created_at":"2011-12-12T20:32:29Z","updated_at":"2018-08-16T20:27:29Z","pushed_at":"2018-08-16T20:27:28Z","git_url":"git://github.com/DataDog/documentation.git","ssh_url":"git@github.com:DataDog/documentation.git","clone_url":"https://github.com/DataDog/documentation.git","svn_url":"https://github.com/DataDog/documentation","homepage":"http://docs.datadoghq.com","size":286534,"stargazers_count":58,"watchers_count":58,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":103,"open_issues":7,"watchers":58,"default_branch":"master"}},"base":{"label":"DataDog:master","ref":"master","sha":"a39ddd95f9de09db5478fb1e0e5260cbbccb5a8c","user":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":2967233,"node_id":"MDEwOlJlcG9zaXRvcnkyOTY3MjMz","name":"documentation","full_name":"DataDog/documentation","owner":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataDog/documentation","description":"The source for Datadog's documentation site.","fork":false,"url":"https://api.github.com/repos/DataDog/documentation","forks_url":"https://api.github.com/repos/DataDog/documentation/forks","keys_url":"https://api.github.com/repos/DataDog/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/documentation/teams","hooks_url":"https://api.github.com/repos/DataDog/documentation/hooks","issue_events_url":"https://api.github.com/repos/DataDog/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/documentation/events","assignees_url":"https://api.github.com/repos/DataDog/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/documentation/tags","blobs_url":"https://api.github.com/repos/DataDog/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/documentation/languages","stargazers_url":"https://api.github.com/repos/DataDog/documentation/stargazers","contributors_url":"https://api.github.com/repos/DataDog/documentation/contributors","subscribers_url":"https://api.github.com/repos/DataDog/documentation/subscribers","subscription_url":"https://api.github.com/repos/DataDog/documentation/subscription","commits_url":"https://api.github.com/repos/DataDog/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/documentation/merges","archive_url":"https://api.github.com/repos/DataDog/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/documentation/downloads","issues_url":"https://api.github.com/repos/DataDog/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/documentation/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/documentation/deployments","created_at":"2011-12-12T20:32:29Z","updated_at":"2018-08-16T20:27:29Z","pushed_at":"2018-08-16T20:27:28Z","git_url":"git://github.com/DataDog/documentation.git","ssh_url":"git@github.com:DataDog/documentation.git","clone_url":"https://github.com/DataDog/documentation.git","svn_url":"https://github.com/DataDog/documentation","homepage":"http://docs.datadoghq.com","size":286534,"stargazers_count":58,"watchers_count":58,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":103,"open_issues":7,"watchers":58,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataDog/documentation/pulls/2944"},"html":{"href":"https://github.com/DataDog/documentation/pull/2944"},"issue":{"href":"https://api.github.com/repos/DataDog/documentation/issues/2944"},"comments":{"href":"https://api.github.com/repos/DataDog/documentation/issues/2944/comments"},"review_comments":{"href":"https://api.github.com/repos/DataDog/documentation/pulls/2944/comments"},"review_comment":{"href":"https://api.github.com/repos/DataDog/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataDog/documentation/pulls/2944/commits"},"statuses":{"href":"https://api.github.com/repos/DataDog/documentation/statuses/be96c69c8ccc16eeebda52bb047698b73d14c4be"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"StephenKappel"}}