locked
Reduce Threshold Cannot Parse RRS feed

  • Question

  • This query works:

    requests 
      | where timestamp >= ago(7d)
      | reduce by name

    This one fails with "I could not parse that, sorry."

    requests 
      | where timestamp >= ago(7d)
      | reduce by name [ with threshold=0.01 ] 

    The docs say this should work....

    https://azure.microsoft.com/en-us/documentation/articles/app-insights-analytics-reference/#reduce-operator

    Friday, October 21, 2016 7:01 PM

Answers

  • Hi, 

    The square brackets are there just to mentions that the "with threshold" option is optional.

    When you want to use that option, put it without the square brackets.

    This should work for you:

    requests 
      | where timestamp >= ago(7d)
      | reduce by name with threshold=0.01

    Hope this helps,

    Asaf

    Friday, October 21, 2016 9:28 PM