def metric_to_api_command(metric):
    """Returns the associated API command for the specified metric."""
    switcher = {
        "averageSpeed": "summary",
        "averageSpeed5s": "summary",
        "chainFailures": "stats",
        "chainsActive": "stats",
        "chipTemp": "stats",
        "errorRate": "summary",
        "fanFront": "stats",
        "fanRear": "stats",
        "frequency": "stats",
        "pcbTemp": "stats",
        "speed": "summary",
        "type": "stats",
        "typeFull": "stats",
    }
    return switcher.get(metric, None)