@classmethod
def from_dict(cls, connection, data):
    """Returns an alert object from a dictionary item,
        which is usually from librato's API"""
    obj = cls(connection, data['name'], version=data['version'],
        description=data['description'], conditions=data['conditions'],
        services=data['services'], _id=data['id'], active=data['active'],
        rearm_seconds=data['rearm_seconds'], attributes=data['attributes'],
        md=data['md'])
    return obj
