when a <code>ServerMetricReport</code> message arrives:</p>
<center>
<img src="/img/blog/2020-08-18-statefun/3_2.png" width="600px" alt=""/>
</center>
<div style="line-height:60%;">
    <br>
</div>
<ol>
<li>Retrieve the previously computed <code>serverHealthState</code> that is kept in state.</li>
<li>Evaluate a model on the sliding window of the previous metric reports + the current metric reported + the previously computed server state to obtain an assessment of the current server health.</li>
<li>If the 