Forum Discussion
Tutorial deprecated example
Hi,
The last examples in the https://docs.loganalytics.io/docs/Learn/Tutorials/Smart-Analytics/Understanding-Diffpatternsare deprectaed as the analytics query analysier tells me "Deprecated. See documentation for new syntax "
https://analytics.applicationinsights.io/demo?q=H4sIAAAAAAAAA1XKTQ5AMBBA4b1TTKxqIUH8bHCXiU6jCVKdKZseHokFy5f3edoDsTBEOGfyBGLXu3F1MIJGoadVUedVk1dF2WWAm%2F6gfvir9lUR6MAl3Au0NcahCPmNVcpusTJwmCZiTrPkAhdwUzqBAAAAwhere timestamp > datetime(04-25-2017) and timestamp <= datetime(04-26-2017) | evaluate diffpatterns("split=success")
https://analytics.applicationinsights.io/demo?q=H4sIAAAAAAAAA1XKQQ6CMBBG4b2nmHQFiSRIUDfWpfeY0B9sUkjtTHXD4YWEBSxf3pfwyRAVmun3RgKpH5fmMdKTHCvWLuq2aq5VU1%2FuJfHkduhhj%2Bq2qZnw5ZCXRc73fWRVpEkKIzF4tZK7DiLmTEY5DVD74iAw5ekPjX%2BFdZEAAAA%3Dwhere timestamp > datetime(04-25-2017) and timestamp <= datetime(04-26-2017) | evaluate diffpatterns("split=success", "target=False")
Who can solve this? Is this the right place to report it?
Regards
2 Replies
- Evgeny Ternovsky
Microsoft
Hi and thanks for reporting! Noa Kuperberg to get the fix in to both the tutorial and the diffpatterns doc page.
The synthax has changed to diffpatterns_v2. For example the first query would become:
requests | where timestamp > datetime(04-25-2017) and timestamp <= datetime(04-26-2017) | evaluate diffpatterns_v2(success, "true", "false")
The great thing about the _v2 variation is that it, unlike the previous one, no longer has to be the last clause in a query.
- Noa Kuperberg
Microsoft
Hey, short update - the docs have been fixed according to the new syntax. Thank you for notifying on this!