def metric_to_keys(metric):
    """Returns the associated key for the specified metric."""
    switcher = {
        "averageSpeed": "GHS av",
        "averageSpeed5s": "GHS 5s",
        "chainFailures": "chain_acs[i]",
        "chainsActive": "chain_acs[i]",
        "chipTemp": "temp2_[i]",
        "errorRate": "Device Hardware%",
        "fanFront": "fan1,fan3",
        "fanRear": "fan2,fan6",
        "frequency": "chain_rate[i],frequency,frequency[i],freq_avg[i]",
        "pcbTemp": "temp3_[i],temp[i]",
        "speed": "GHS 5s",
        "type": "Type",
        "typeFull": "Type",
    }
    return switcher.get(metric, None)