def filtered_alarm(alarm):
    """
    Restructure a CloudWatch alarm into a simpler form.
    """
    filtered = {
        "AlarmArn": alarm["AlarmArn"],
        "AlarmName": alarm["AlarmName"],
        "MetricName": alarm["MetricName"],
        "Namespace": alarm["Namespace"],
        "StateValue": alarm["StateValue"],
        "StateUpdated": int(alarm["StateUpdatedTimestamp"].timestamp())
    }
    return filtered