(entities, entity_id, check_id)
Deletes the check from the collection, or throws an error if it does not exist.
Deletes the check from the collection, or throws an error if it does not exist.
Deletes the check from the collection or throws an error if it does not exist .
def _delete_check(entities, entity_id, check_id):
    """
    Deletes the check from the collection, or throws an error if it does not exist.
    """
    entity = _get_parent_entity(entities, entity_id)

    _delete_object(entity.checks,
                   'Check',
                   check_id,
                   '{0}:{1}'.format(entity_id, check_id))

    alarms_to_delete = [alarm_id for alarm_id in entity.alarms
                        if entity.alarms[alarm_id].check_id == check_id]
    for alarm_id in alarms_to_delete:
        del entity.alarms[alarm_id]
def _delete_check ( entities , entity_id , check_id ) : entity = _get_parent_entity ( entities , entity_id ) _delete_object ( entity . checks , 'Check' , check_id , '{0}:{1}' . format ( entity_id , check_id ) ) alarms_to_delete = [ alarm_id for alarm_id in entity . alarms if entity . alarms [ alarm_id ] . check_id == check_id ] for alarm_id in alarms_to_delete : del entity . alarms [ alarm_id ]