title: Azure Log Analytics Metric Measurement Alert
body: <p>I have a log query like,</p>
  
  <pre><code>example_cl
  | top 1 by TimeGenerated desc
  | project in_use, unused, total = (in_use + unused)
  </code></pre>
  
  <p>Which gives me a simple output;</p>
  
  <pre><code>in_use  unused  total
    75     45      120
  </code></pre>
  
  <p>I wish to set a metric alert to this query such that when the in_use cross 90% of total it would send an email alert</p>
  
  <p>On trying to make the alert Im given the following error always</p>
  
  <pre><code>Search Query should contain 'AggregatedValue' and 'bin(TimeGenerated, [roundTo])' for Metric alert type
  </code></pre>
  
  <p>Need help figuring our the right query for this particular metric alert.</p>