Compare observed latency with a target and classify the current budget state.

Latency Budget Reliability Report

LatencyBudgetReliabilityReport.cs
using System;

class Program
{
    static string LatencyStatus(int observedMs, int targetMs)
    {
        if (observedMs > targetMs)
        {
            return "slow";
        }

        if (observedMs > targetMs - 40)
        {
            return "watch";
        }

        return "fast";
    }

    static void Main()
    {
        int targetMs = 200;
        int observedMs = ;
        string status = LatencyStatus(observedMs, targetMs);

        Console.WriteLine("observed=" + observedMs);
        Console.WriteLine("target=" + targetMs);
        Console.WriteLine("status=" + status);
    }
}
using System;

class Program
{
    static string LatencyStatus(int observedMs, int targetMs)
    {
        if (observedMs > targetMs)
        {
            return "slow";
        }

        if (observedMs > targetMs - 40)
        {
            return "watch";
        }

        return "fast";
    }

    static void Main()
    {
        int targetMs = 200;
        int observedMs = ;
        string status = LatencyStatus(observedMs, targetMs);

        Console.WriteLine("observed=" + observedMs);
        Console.WriteLine("target=" + targetMs);
        Console.WriteLine("status=" + status);
    }
}
using System;

class Program
{
    static string LatencyStatus(int observedMs, int targetMs)
    {
        if (observedMs > targetMs)
        {
            return "slow";
        }

        if (observedMs > targetMs - 40)
        {
            return "watch";
        }

        return "fast";
    }

    static void Main()
    {
        int targetMs = 200;
        int observedMs = ;
        string status = LatencyStatus(observedMs, targetMs);

        Console.WriteLine("observed=" + observedMs);
        Console.WriteLine("target=" + targetMs);
        Console.WriteLine("status=" + status);
    }
}
latency budget A latency budget report makes the comparison between observed latency and the target explicit before assigning the final status label.